View previous topic :: View next topic |
Author |
Message |
JohnV
Joined: 19 Nov 2004 Posts: 4
|
Posted: Tue Nov 30, 2004 1:41 pm Post subject: ASP to JavaScript |
|
|
Hi,
Can I pass a value from my server-side ASP code to a clien-side JavaScript function?
John |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
|
Back to top |
|
|
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Wed Feb 01, 2006 2:07 am Post subject: |
|
|
ASP is unaware of Javascript and Javascript will accept ASP arguments as being hard-coded values by the time it interprets the code since it must be fully loaded and delivered to the browser.
so if you had a function foo:
Code: | function foo('<%=vASPVariable%>')
{
//do something
} |
and the variant vASPVariable was equal to 1 the function would read it as such. _________________ Programmers do it in code |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|