Hi there,
There are basically two ways to do this: from the client with JavaScript, or from the server with ASP code by writing the values to the JavaScript.
Method 1:
You can use
document.location.search to retrieve the entire QueryString in JavaScript. This will return the entire QueryString, including the question mark. You'll need to do some string parsing to get at the individual parameters.
Method 2 (much easier):
Use <%= temp %> to write the value of the temp var to a client side JavaScript block, like this:
Code:
<script language="JavaScript" type="text/javascript">
var jsTemp = '<%=temp%>';
</script>
When the ASP page loads, it will dump the value for
temp between the ''s in the JavaScript code block, so you end up with a valid value for your JavaScript variable.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.