pml
03-26-2005, 05:34 PM
I need some help to create a url consisting of three variables. The variables are two strings and a number. I guess you understand what I am trying to achieve when you look at my "visit_asp_url"-function, because nothing happens when I call that function. Of course the three variables should be sent to "asp_url.asp", but how do I do that.
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
function visit_asp_url(string_1, string_2, integer_1){
window.parent.main.location.replace(asp_url.asp?variable_1=string_1&variable_2=string_2&number=integer_1");
}
//-->
</script>
</head>
<body>
<a href="javascript:visit_asp_url('a_string','another_string',a_number)">Go to asp_URL</a>
</body>
</html>
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
function visit_asp_url(string_1, string_2, integer_1){
window.parent.main.location.replace(asp_url.asp?variable_1=string_1&variable_2=string_2&number=integer_1");
}
//-->
</script>
</head>
<body>
<a href="javascript:visit_asp_url('a_string','another_string',a_number)">Go to asp_URL</a>
</body>
</html>