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

JavaScript ===> APS ????

Status
Not open for further replies.

SuperCyber

Programmer
Aug 10, 2001
35
US
Can I pass a value form JavaScript into ASP?

Thanks,
Brian
 
Not really, but I have discovered a different approach.
If you create a hidden form object you can reference it both in VB and Javascript. However, you must remember that javascript is event driven where as vbscript is not. So depending on what you want to happen, you might have to post the page to itself, then have either javascript of vbscript redirect as needed.

If you need some examples let me know. :)
 
Yes, thank you, I would like any examples you can give, but how do I get the value passed into the <% ASP %> code from javascirpt or vbscript to use in a database call? I need to get the value of a drop down box into a variable so I can use it as an input variable in a SQL SP. But I would like to do the updates to the page dynamically by inputing the reuslts into a <span> tags without reloading the page.


Thanks,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top