demetries
02-03-2004, 11:16 AM
I am trying to pass a variable contents from a Java script into VBscript environment.
The following code is what I have:
<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
</script>
<script language="Javascript">
strcountry=(sGeobytesCountry);
</script>
<%Response.write(strcountry)%>
As you can see, I cannot access variable strcountry.
Reason been that all client side scripting such as java is executed after the server side.
I want to know how I can pass that variable to VBscript environment using an alternative way.
The java script gets the country and city of the clients pc using a URL.
Thanks
The following code is what I have:
<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
</script>
<script language="Javascript">
strcountry=(sGeobytesCountry);
</script>
<%Response.write(strcountry)%>
As you can see, I cannot access variable strcountry.
Reason been that all client side scripting such as java is executed after the server side.
I want to know how I can pass that variable to VBscript environment using an alternative way.
The java script gets the country and city of the clients pc using a URL.
Thanks