|
 |
asp_web_howto thread: Remote Scripting and Request Object
Message #1 by compuquestion@h... on Fri, 28 Feb 2003 20:12:31
|
|
I have created an ASP which:
1. uses Remote Scripting; and
2. on the server side (in javascript), uses the Request object to retrieve
a query string value.
For example, the url looks like this:
page.asp?test=rs
<%
var testvar = Request("test");
%>
When I call one of my Remote Scripting functions, I get the following
Remote Scripting error:
Remote Scripting Error
REMOTE SCRIPTING ERROR: Page invoked does not support remote scripting.
If I replace 'Request("test")' with an actual string value, I do not get
the Remote Scripting error anymore.
<%
var testvar = "rs";
%>
Do you have an idea what is causing the error?
Message #2 by "Drew, Ron" <RDrew@B...> on Fri, 28 Feb 2003 15:26:58 -0500
|
|
Don't you mean Request.QueryString?
<%
Var testvar =3D Request.QueryString("test")
%>
Not sure what you meant by item 2 since Javascript running on the
client.
-----Original Message-----
From: compuquestion@h... [mailto:compuquestion@h...]
Sent: Friday, February 28, 2003 3:13 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Remote Scripting and Request Object
I have created an ASP which:
1. uses Remote Scripting; and
2. on the server side (in javascript), uses the Request object to
retrieve
a query string value.
For example, the url looks like this:
page.asp?test=3Drs
<%
var testvar =3D Request("test");
%>
When I call one of my Remote Scripting functions, I get the following
Remote Scripting error:
Remote Scripting Error
REMOTE SCRIPTING ERROR: Page invoked does not support remote scripting.
If I replace 'Request("test")' with an actual string value, I do not get
the Remote Scripting error anymore.
<%
var testvar =3D "rs";
%>
Do you have an idea what is causing the error?
Message #3 by compuquestion@h... on Fri, 28 Feb 2003 21:19:44
|
|
Yes, I do mean Request.QueryString:
<%
var testvar = Request.QueryString("test");
%>
By number 2, I was referring to the preceding code in which I set the
testvar value using the Request object on the server-side.
I set my ASP server-side language to javascript:
<%@ language="javascript" %>
> Don't you mean Request.QueryString?
<%
Var testvar =3D Request.QueryString("test")
%>
Not sure what you meant by item 2 since Javascript running on the
client.
|
|
 |