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 Member Posts: 54
    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 Member Posts: 174
    [b]Awesome, Thank You[/b]
    [hr]
    ~~[blue]Perl[/blue]~~[red]Visual Basic[/red]~~[green]JavaScript[/green]~~
    SuperJoe

  • Shawn CarterShawn Carter Member Posts: 0

    _______ { http://forcoder.org } free video tutorials and ebooks about / PHP Assembly Perl Java Go C C# R Swift Python Visual Basic Scratch Delphi Ruby PL/SQL MATLAB Objective-C C++ JavaScript Visual Basic .NET Julia Prolog Alice Ada LabVIEW Scala Fortran Apex Scheme Logo Erlang Awk Lua F# VBScript ABAP Hack Transact-SQL SAS FoxPro Crystal Bash ML Rust Dart COBOL D Lisp Clojure Kotlin /

Sign In or Register to comment.