You are not logged in.

hfeist

Beginner

  • "hfeist" started this thread

Posts: 10

Location: Toronto

Occupation: artist

  • Send private message

1

Saturday, May 9th 2015, 7:03pm

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




hfeist

Beginner

  • "hfeist" started this thread

Posts: 10

Location: Toronto

Occupation: artist

  • Send private message

2

Saturday, May 9th 2015, 7:24pm

well it's obvious -- i should send them individually

js(saveHotspot(popup.asp,get(toh),get(tov)););