Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass JavaScript variable to Oscript (Weblingo) variable

Status
Not open for further replies.

menu

Technical User
Apr 25, 2001
24
AE
Hello,

<script language="JavaScript">

var strMsg = "JS_Varisble";
;String OSvar = strMsg
alert("`OSvar`");

</script>

The above code is not working and the resone is I don't know how I can pass JavaScript variable to Oscript (Weblingo) variable, is there is a way to do that? Please help

Thanks,
 
The OSCRIPT variable is processed server side and the JS on the client side so they have no visibility of each other unless you pass them in the QueryString or a Form submission just like any other serverside language. You may be able to work the other way :

<script language="JavaScript">
;String OSvar = "JS_Varisble"
var strMsg = "`OSvar`";
alert(strMsg);

</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top