I've an asp page which reads a db and comes up with four fields. In the same page I've a javascript block which needs to read these fields: any idea how I could accomplish this?
What exactly are you trying to do? Please keep in mind, that VBScript is Server side and Javascript is Client-Side. So the Javascript will execute on the client side.
Are you sure you need Javascript?
If yes and if client side is fully wanted: Perhaps you could also implement the Javascript code via
"Response.write("<script language=Javascript>...")
into your ASP-Script? This way you could directly assign the database values rather than form fields.
Hope this helps,
Andy
[blue]An eye for an eye only ends up making the whole world blind. - "Mahatma" Mohandas K. Gandhi[/blue]
already answered in Javascript forum (thread216-1042345). In future - please mention if you post in multiple forums to avoid people wasting time on problems that have already been solved.
Tony
[red]_________________________________________________________________[/red] Webmaster -
Yes, someone offered something in the javascript forum: unfortunatley it didn.t work.
I'm sure I mentioned in the javascript one that I'd already put something elsewhere??
oh well, whatever
makeitso: already tried "Response.write("<script language=Javascript>...") , but , even in response.writes, the <script></script> tags make the rest of the code come up with errors.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.