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!


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.


  • bagles1bagles1 Posts: 54Member
    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.

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

Sign In or Register to comment.