http::/localhost:8080/app/runtime/Main.HTM
<head> ><meta http-equiv="Pragma" content="no-cache"> ><title>Sample Run-Time Environment</title> ><script language ="JAVASCRIPT" > >var API_XXXX_YY = null; >/**************************************************************************** >** >** Function: initAPI() >** Input: none >** Output: none >** >** Description: This function sets an "API" variable equal to the API >** Applet. >** >***************************************************************************/ >function initAPI() >{ > API_XXXX_YY = window.Frame.document.APIAdapter; >} ></script> > <frameset rows="143,*" ONLOAD="initAPI();"> > <frame id="Frame" name="Frame" src="Frame.jsp"> ></frameset> ></head>>Note the Frame.jsp "src". In Frame.jsp exists the "APIAdapter" code:
<body onload="init();"> > ><!-- For MS IE Use the Java 1.4 JRE Plug-in instead of the Browser's JVM > Netscape 4.x can't use the plug-in because it's liveconnect doesn't > work with the Plug-in >--> ><form name="buttonform"> > <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" > width="0" height="0" id="APIAdapter" > codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"> > <param name = "code" value = "org/app/samplerte/client/ClientRTS.class" > > <param name = "codebase" value = "/app" > > <param name = "type" value="application/x-java-applet;jpi-version=1.4.2"> > <param name = "mayscript" value="true" > > <param name = "scriptable" value="true" > > <param name = "archive" > value = "util.jar,cmidatamodel.jar,lmsclient.jar,debug.jar,sequencer.jar,nav.jar,joda-time-0.95.jar" > > <comment> > <applet code="org/adl/samplerte/client/ClientRTS.class" > archive="cmidatamodel.jar,lmsclient.jar,debug.jar,nav.jar,joda-time-0.95.jar" > codebase="/app" > src="/app" > height="1" > id="APIAdapter" > name="APIAdapter" > width="1" > mayscript="true"> > </applet>>The project manages content delivery (third party content) based on rules defined in the content and a so called Activity Tree. I need to model methods to enforce the rules. My hope was to do the model with IIS foxISAPI and a VFP COM that I could substitute for API_XXXX_YY
object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
in the init above. The substitute VFP COM would provide the third party content "APIWrapper.js" a reference to the substitute VFP COM that would expose GetValue() and SetValue() (etc) to the APIWarapper requests.