Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with message "Object Required: 'request'"

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi folks

Does anyone know what the error message in the subject line means? If I need to post more info I will, but I'm looking for a general explanation.

Thanks

Ben
 
Sure thing....

<%@ LANGUAGE=&quot;VBSCRIPT&quot; %>

<html>
<head>

</head>
<body>
Hi <%=Request.form(&quot;Cardnum&quot;)%>! Your PIN is <%=Request.form(&quot;PIN&quot;)%>
<SCRIPT LANGUAGE = &quot;vbscript&quot;>
<!--
Alert &quot;CrdNum is a type &quot; &amp; VarType(Request.form(&quot;Cardnum&quot;)) &amp; &quot; Variant and strPIN is a type &quot; &amp; VarType(Request.form(&quot;PIN&quot;)) &amp; &quot;Variant.&quot;
-->
</SCRIPT>
</body>
</html>

Ben

P.S. to see why I need this script, see my other post from this morning...
 
Hi,
this ones simple. You have used the request object in a client-side script. The client does not have any notion of the ASP environment so what you want to do cannot be done in the manner that you want.
What you might do is return the data you want to show in the alert in some hiiden fields and then use that to populate the alert.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
or you could use the same thing you did before with the
<%=...%>
and do something like:
alert(&quot;CrdNum is a type &quot; + '<%=VarType(Request.form(&quot;Cardnum&quot;))%>' + ....

that way you won't have to worry about hidden fields and such



ray
rheindl@bju.edu

 
sorry, I gave you javascript syntax. It should be:
Alert &quot;CrdNum is a type&quot; &amp; &quot;<%=VarType(Request.form(&quot;Cardnum&quot;))%>&quot; &amp; ....

ray
rheindl@bju.edu

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top