if you need to pass strings like that, you just have to include an
extra set of quotes...
you could either escape another set, like this:
getURL("javascript:testfunc(\""+arg+"\")");
or use single quotes:
getURL("javascript:testfunc('"+arg+"')");
On Nov 17, 2006, at 4:16 PM, [EMAIL PROTECTED] wrote:
Hi
I'm passing multiple arguments in a getURL javascript call.
Because of the way that arguments need to be enclosed in quotes I'm
not sure about the best way for handling this
Single argument (this works)
var arg='myvar'
getURL("javascript:testfunc("+arg+")");
solution 2 (doesn't work, the javascript method doesn't get called)
var myob={};
myob.prop=String
myob.value=number
getURL("javascript:testfunc("+myob+")");
Anyone have some ideas?
No, I can't use External Interface;)
[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
- Bruce Mau,'LifeStyle'
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com