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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return from asp function

Status
Not open for further replies.

MinnisotaFreezing

Programmer
Jun 21, 2001
120
KR
Hi,

Is there anyway way I can capture the return from an asp call into a Javascript variable? I am trying to figure out how a page works, and there is a call that I'm pretty sure results in a URL. I want to capture this to a javascript varaible, the Alert(var) to find out what it is.

Any ideas?
 
If you check out the FAQs the second FAQ has a Q and A, one of them covers writing an ASP variable value to a javascript variable. It's not actually necessary to write it to an alert box though, a simelp Response.Write with some bright colors ought to suffice in showing you the value coming back.

-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
 
Great, thanks a lot. Can I ask you, is this proper ASP syntax?

dim a = FileName.asp?path=Fcu1R3f?game=sc

Thanks again.
 
No, you need to surround that in quotes since you are specifying a string, like so:
Code:
dim a = "FileName.asp?path=Fcu1R3f?game=sc"

if you don't surround it in quotes it won't be recognized as a string and will give youy strange errors.

Hope this helps,
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top