how to pass arguments to javascript?

  • I'm trying to pass a number of arguments to a javascript function but am having problems figuring out the proper method.

    js(display_box(popup.asp?id=2&h=get(toh)&v=get(tov)));

    gives a fatal error


    if i try to build a string to pass the arguments like so

    set(cmd,'id=2'+'h='+get(toh)+'v='+get(tov));


    then pass them

    js(display_box(popup.asp?cmd=get(cmd)));


    the asp file says it receives "cmd=get(cmd)" instead of the string i had hoped for


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!