[SWFObject] Ampersands and addVariable Parameters
Jose Rodriguez
jose.rodriguez at JRVisuals.com
Fri Oct 6 14:54:01 PDT 2006
Thanks G -- you da man. Thanks for a great piece of JS. - JR
----------------------------------------
From: Geoff Stearns <geoff at deconcept.com>
Sent: Friday, October 06, 2006 5:25 PM
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] Ampersands and addVariable Parameters
you have to escape any special chars:
so.addVariable("url", escape("yoururlstring"));OR, if you are using double-byte chars (like most asian languages) you can use encodeURIComponent() instead of encode.
On Oct 6, 2006, at 5:15 PM, Jose R. Rodriguez (JRVisuals,LLC) wrote:Hi there, Still searching the archives on this one but... I'm having problems passing a parameter in via addVariable. The value ( a URL containing name/value pairs) is being truncated at the first ampersand. Any ideas? Many thanks, - JR Jose R. Rodriguez : Founder / JRVisuals, LLC : www.JRVisuals.com || blog.JRVisuals.com
716.523.1219 mobile|| 716.884.1000 office|| 716.840.5909 fax || Josker420 aim
"Making the simple complicated is commonplace;
making the complicated simple, awesomely simple, that's creativity."
-Charles Mingus _______________________________________________SWFObject mailing listSWFObject at lists.deconcept.comhttp://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061006/a7225296/attachment-0005.htm>
More information about the Swfobject
mailing list