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

Call a Javascript procedure from ASP

Status
Not open for further replies.

fterrazas

Technical User
Dec 29, 2000
43
ES
How can I call a Javascript procedure from ASP(vbscript), this is what I got:
I have a session variable called "linvar" that take it value from a DB, I want to call a Javascript procedure that need this value I use this:
call Nom_Proc(Session("linvar"))
but It doesn't work why?
In my Nom_Proc procedure I have some statements related to the properties of layers in the page something like this:
document.layers["Layer1"].visibility='show';, etc.
Maybe I can do this procedure with VBScript but I don't know how. Pleas help me.
 
You've got what you want to do, if you written the bottom

this

<!-----------Script (Start....)------------->



<!----> <html>
<!----> <head>
<!----> <title>Script call from Asp</title>
<!----> </head>
<!----> <% Public Sub Script_Call() %>
<!----> <%SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!----> <!--

MsgBox(&quot;Script Called!&quot;)

-->
<!----> </SCRIPT>
<!----> <% End Sub %>
<!---->
<!----> <% Script_Call() %> ' callScript_Call().
<!----> <body>
<!----> </body>
<!----> </html>

<%

%>

<!-----------Script (End.... )------------->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top