Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.