hi,
I am trying some remote scripts. I am getting the same error "Failed to create the ASP object: url". I tried installing the JVM, but still i am receiving the error. I am pasting my code here for your reference. I will appreciate if you have any suggestions or comments,
The "snake.htm" calls snake.asp file from the server. The snake.asp and snake.htm are in the same folder on the server. I am running the client browser from the server machine.
<HTML>
<HEAD>
<TITLE>Remote Scripting Test</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript" src="../_ScriptLibrary/RS.HTM"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
RSEnableRemoteScripting("../_ScriptLibrary")
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" for="btnStraight" event="onclick">
snake = RSGetASPObject("snake.asp")
cycle = T1.value;
co = snake.TravelStraight(cycle);
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" for="btnStop" event="onclick">
snake = RSGetASPObject("snake.asp")
co = snake.STOP();
</SCRIPT>
<form name ="snake_frm">
<p>Enter the No of Cycles <input type="text" name="T1" size="5" tabindex="1"></p>
<p> </p>
<p>
<input type="button" value="STRAIGHT" name="btnStraight">
</p>
<p> <input type="button" value="Right" name="btnRight">
<input type="button" value="CENTER" name="btnCenter">
<input type="button" value="LEFT" name="btnLeft">
</p>
<p>
<input type="button" value="STOP" name="btnStop"></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
<p> </p>
<p> </p>
</body>
</html>