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

JS variable into VB in ASP?

Status
Not open for further replies.

tyleri

Programmer
Jan 2, 2001
173
US
Hi,

I was wondering if there was any way to copy the value of a javascript variable into a visual basic variable within an ASP file.

 
What is it that you are trying to do exactly. With an asp page using javascript, you can out the variable into a form or attach it as a querystring for use on the next page. Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
What I'm actually trying to do is get the referred link [javascript command: escape(document.referrer)] to store itself in a MS Access table, using ASP. Therefore, I think I need to get the results of the command: escape(document.referrer) , to store into a VB variable somehow. Any thoughts?

Thanks
 
You don't need javascript at all....

fromPage = request.serverVariables("HTTP_REFERER") Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top