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

Howdy, Stranger!

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

Categories

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.

Comments

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

    <% theparam = "client test" %>


    var testvar = '<%= theparam %>';
    alert(testvar);


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


  • superjoe30superjoe30 Posts: 174Member
    [b]Awesome, Thank You[/b]
    [hr]
    ~~[blue]Perl[/blue]~~[red]Visual Basic[/red]~~[green]JavaScript[/green]~~
    SuperJoe

Sign In or Register to comment.