[SWFObject] Ampersands and addVariable Parameters

Jim Blakeslee blakes at geocentric.com
Wed Nov 1 06:36:48 PST 2006


I am doing:

so.addVariable("mapitlabel",escape("Tony & Joe's Seafood Place"));

but the Flash is still seeing the string as just "Tony"

see page here:
http://www.georgetowndc.com/mapit.php?id=1102


Geoff Stearns wrote:
> 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 
>> <http://www.jrvisuals.com/>* *||* *blog.JRVisuals.com 
>> <file:///C:/Documents%20and%20Settings/JRVisuals%20LLC/Application%20Data/Microsoft/Signatures/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 <mailto:SWFObject at lists.deconcept.com>
>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>   




More information about the Swfobject mailing list