Hi guys,<br>I am using (Frontpage)javascript at the client side and i want to display data on the fields which is on the client side using vbscript on server side.<br>pls let me know.<br><br>Thanks in advance<br>yogesh<br>
Server-side scripting is only performed at the time the page loads, it is not something you can call back to the server to perform, you can however hava javascript reload your ASP posting it a form with new values so that your page can act accordingly. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href=
</a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
how to reload javascript page with new values which are read by an asp so that my page can act accordingly. <br><br>Thank<br>yogesh
Yogesh,<br> I'm not sure I understand your question exactly, but if you want to retrieve values on the server using VBscript, and have them available on the client to use with Javascript, this is how. If not, please rephrase your question.<br><br><%<br>dim MyVBscriptValue<br>MyVBscriptValue = "4"<br>response.write "<SCRIPT language='Javascript'>" & vbcrlf<br>response.write "var MyJavascriptVarable = " & MyVBscriptValue & ";" & vbcrlf<br>response.write "</SCRIPT>" & vbcrlf<br>%><br><br>I'd suggest doing this inside the <HEAD></HEAD> tags.<br><br>Then the variable MyJavascriptVariable will contain an inital value of 4, and will be available to all scripts on the client side.<br><br> <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
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.