944,087 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1842
  • ASP RSS
May 17th, 2007
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
edouard89 is offline Offline
53 posts
since Feb 2007
May 24th, 2007
0

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

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>
Reputation Points: 10
Solved Threads: 2
Newbie Poster
kokkee is offline Offline
20 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: why isn't this booking form working.
Next Thread in ASP Forum Timeline: using dynamic querystrings with js





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC