Using Client(JS) to get Server(VBS) value.

Reply

Join Date: Feb 2007
Posts: 53
Reputation: edouard89 is an unknown quantity at this point 
Solved Threads: 2
edouard89's Avatar
edouard89 edouard89 is offline Offline
Junior Poster in Training

Using Client(JS) to get Server(VBS) value.

 
0
  #1
May 17th, 2007
I have an ASP page that uses VB to make the url that would be used on a page. I also have a Javascript function that when activated would change a form around. Now what I want to do is using JS when an image is clicked to get the url that the VB made to a JS function. My problem is that the url is saved through the use of a variable(url2), Im having problems passing that variable into the JS function. If any one knows how to do this it would be greatly apreciated.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 20
Reputation: kokkee is an unknown quantity at this point 
Solved Threads: 2
kokkee kokkee is offline Offline
Newbie Poster

Re: Using Client(JS) to get Server(VBS) value.

 
0
  #2
May 24th, 2007
you try to understand below code, it maybe can help u.
<html>
<head>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2)
end sub
%>
<script language="javascript" runat="server">
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
</script>
</head>

<body>
<p>Result (call vbscript function): <%call vbproc(3,4)%></p>
<p>Result (call javscript function): <%call jsproc(3,4)%></p>
</body>

</html>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC