Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this be done without ASP or JSP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00969176
Message ID:
00969482
Vues:
22
Thanks Claude. I have some miles to travel before I get to deployment. Right now I am struggling to model behavior:). If the OBJECT tag would create a public handle for a VFP COM (that I can model with) that subsequent server scripts could reference - I could devine the structures first and learn the ASP at deploy time!

>ASP comes with IIS and is just another ISAPI dll so I'm not sure I understand the problems with using it. It's about 100 times easier to deploy than foxisapi. I would just start with something that works and dive into the application.
>>The project is a content server. It serves third party content that is "imported" into a server folder and items in an XML manifest are written to the server's database.
>>
>>The project would prefer not to require an ASP or JSP engine. The project will run under IIS. The "demo" project is java JavaScrip JSP and ".java" classes. My undestanding is that ASP is an IIS add on. JSP would require that Apache or other JSP server be installed behind IIS. CGI is okay for this project.
>>
>>When the user launches an "activity", a "startup" url will direct the user to a "Main" page (htm):
>>http::/localhost:8080/app/runtime/Main.HTM
>>Main.htm has some java script (ECMAScript). The browser is required to have java enabled. Main.HTM needs to raise an object that subsequent "script" (.js or HTM script) can address. Here is how Main.HTM does it:
>>
<head>
>><meta http-equiv="Pragma" content="no-cache">
>><title>Sample Run-Time Environment</title>
>><script language ="JAVASCRIPT" >
&gt;>var API_XXXX_YY = null;
&gt;>/****************************************************************************
&gt;>**
&gt;>** Function:  initAPI()
&gt;>** Input:   none
&gt;>** Output:  none
&gt;>**
&gt;>** Description:  This function sets an "API" variable equal to the API
&gt;>**               Applet.
&gt;>**
&gt;>***************************************************************************/
&gt;>function initAPI()
&gt;>{
&gt;>   API_XXXX_YY = window.Frame.document.APIAdapter;
&gt;>}
&gt;></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
&gt;&gt;      Netscape 4.x can't use the plug-in because it's liveconnect doesn't
&gt;&gt;	  work with the Plug-in
&gt;&gt;-->
>><form name="buttonform">
>> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
&gt;>   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"
&gt;>           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"
&gt;>            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.
>>
>>It is not proposed this be a permanent solution - just a prototype to model behaviors. The bottom line is that the "3rd Party" content's (APIWrapper.js) APIWrapper needs a handle for API_XXXX_YY.
>>
>>Thank you,
>>Terry
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform