I don't know asp, need to transfer param to Jscript

[b][red]This message was edited by the superjoe30 at 2002-6-24 16:10:20[/red][/b][hr]
Can anyone give me a [red]SIMPLE[/red] line of code to a Jscript variable called [italic]thevar[/italic]?

first, get the param [italic]theparam[/italic] to a variable and transfer it to the variable in Jscript.


  • the easiest way to set a client side variable with ASP is simply like this:

    <% theparam = "client test" %>

    var testvar = '<%= theparam %>';

    Now just insert that into a test page and when ran it will display an alert box with the phrase "client test" in it.

  • [b]Awesome, Thank You[/b]
    ~~[blue]Perl[/blue]~~[red]Visual Basic[/red]~~[green]JavaScript[/green]~~

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!