remote scripting error

Results 1 to 5 of 5

Thread: remote scripting error

  1. #1
    malc@couriertracker.com Guest

    Default remote scripting error

    I&#039ve followed microsofts documentation to the letter and can&#039t get past this error.<BR>I&#039m trying to call a remote script (in vbscript) from a client script (in Vbscript) any help appreciated...<BR><BR>Microsoft VBScript runtime error &#039 800a000d&#039 <BR><BR>Type mismatch: &#039RSExecute&#039 <BR><BR>/testRS.asp, line 502 <BR>

  2. #2
    Nathen Grass Guest

    Default RE: remote scripting error

    Can you provide your client-side code so we can help debug?

  3. #3
    malc@couriertracker.com Guest

    Default RE: remote scripting error

    Nathen,<BR><BR>Thanks for looking at this.<BR><BR>My own feeling is that the server side script is never even executed.<BR><BR>All the examples suggest you can write the calling routine in VBScript but it doesn&#039t work for me.<BR><BR>This is one of many examples I&#039ve tried over the last 3 days!<BR><BR>Malcolm<BR><BR>Client side script<BR>---------------------------------------------------------<BR>&#060;html&#062;<BR>&#060;head&#062;<BR>&#060; title&#062;&#060;/title&#062;<BR>&#060;/head&#062;<BR>&#060;body&#062;<BR>&#060;script language="JavaScript" src="../_ScriptLibrary/rs.htm"&#062;&#060;/script&#062;<BR>&#060;script language="JavaScript"&#062;RSEnableRemoteScripting ("../_ScriptLibrary");&#060;/script&#062;<BR><BR><BR>&#060;h1&#062;Remote Script Client&#060;/h1&#062;<BR><BR>&#060;%<BR>ret2 = RSExecute("sfuncs.asp","display_name")<BR>response .write "hello" & ret2<BR>%&#062;<BR>&#060;p&#062;The end<BR>&#060;/body&#062;<BR>&#060;/html&#062;<BR>--------------------------------------------------------------<BR><BR>Server script<BR>--------------------------------------------------------------<BR>&#060;!-- #INCLUDE FILE="../_ScriptLibrary/RS.ASP" --&#062;<BR>&#060;% RSDispatch %&#062;<BR><BR>&#060;%@ LANGUAGE=VBSCRIPT&#062; %&#062;<BR>&#060;%<BR>public Function display_name()<BR> display_name = "malcolm"<BR>End Function<BR>%&#062;<BR>-----------------------------------------------------------------

  4. #4
    Nathen Grass Guest

    Default RE: remote scripting error

    I think I know where the problem is. You&#039re executing the RSExecute in server-side code when it should be in client-side code. Try adding this to your ASP page that calls the Remote ASP page:<BR><BR>&#060;button id="btnTestID" onclick="TestRS()"&#062;Click Me&#060;/button&#062;<BR><BR><BR>&#060;script language="Javascript"&#062;<BR>function TestRS(){<BR><BR>&nbsp;&nbsp;&nbsp;co = RSExecute("sfuncs.asp","display_name");<BR>&nbsp;& nbsp;&nbsp;alert(co.return_value);<BR><BR>}<BR>&#0 60;/script&#062;<BR>


  5. #5
    malc@couriertracker.com Guest

    Default RE: remote scripting error

    Suddenly it all makes sense. I owe you a beer!<BR><BR>Malc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •