If your interested in utilizing JScript for U2 within an intranet environment, you can cut and paste the following code to execute any U2 command. No ASP involved, but UniObjects needs to be installed on client machine invoking following web page.

<html>
 <head>
   <title>My Simple Command Test</title>
   <script language="jscript" src="/JS4U2/js/JS4U2.jse"></script>
   <script language="jscript">
<!--
function onloadEvent() {
 U2Session(oSession);
 if (!U2ConnectSession(oSession)) { submit.disabled = true; }
return;
}
function onunloadEvent() {
 U2DisconnectSession(oSession);
return;
}
function submitEvent() {
 commandresults.value = U2ExecuteCommand(oSession,command.value);
return;
}
// -->
   </script>
 </head>

<body onload="onloadEvent();" onunload="onunloadEvent();">
<h3>Test Submitting a Command</h3>
<input type=text name="command" value="SORT VOC" size="100"></input>
<input type="submit" name="submit" value="Submit Query" onclick="submitEvent();"></input>
<br/><br/>
<textarea name="commandresults" cols="100" rows="20"></textarea>
<object id="oSession" classid="clsid:3ED50B8E-0667-11D4-BE19-00104B2A91CE"></object>
</body>
</html>


Regards,  Ian Renfrew

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 14, 2005 6:13 PM
Subject: Re: [U2] UV to Web interface



Provided you have UniDK and provided your web server will understand ASP pages, I've posted Vance's code to the pickwiki here

http://www.pickwiki.com/cgi-bin/wiki.pl?SimpleASP

with a few extra comments.
Later on (within the month) I will post some other code to do various things, that build on this hopefully.


Will Johnson
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to