[SWFObject] Ampersands and addVariable Parameters

Geoff Stearns geoff at deconcept.com
Fri Oct 6 14:24:22 PDT 2006


you have to escape ant 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 list
> SWFObject at lists.deconcept.com
> http://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/ccf8dbe7/attachment-0005.htm>


More information about the Swfobject mailing list