Flash clicktag dropping variables after ampersand

Hi,

This question is very urgent so I have allocated 500 points for someone to help me.

I need to pass the following variables using clicktag but everything after the first & does not get passed into the next url.

banner.swf?clicktag=index.cfm?p=banners_info&banner_id=#banner_id#&target=_self

basically this half of the url is not being passed ...

&banner_id=#banner_id#&target=_self

This is the only part of the page that loads ...

index.cfm?p=banners_info
SwitchedOnMediaAsked:
Who is Participating?
 
Aneesh ChopraCommented:
& is being treated as starting of a new variable in querystring....

there is only one way to pass the complete value is replace the "&" with another character in querystring and replace that character with "&" inside flash to get the original complete value.

for example, replace the "&" with "~":
banner.swf?clicktag=index.cfm?p=banners_info~banner_id=#banner_id#&target=_self

and inside flash, replace the "~" with "&" back:
---------
clicktag = String(clicktag).split("~").join("&");
---------

now you would have complete original value inside flash.


Rgds
Aneesh
0
 
CyanBlueCommented:
You can also replace '&' with '%26' and '=' with '%3D' like this...

banner.swf?clicktag=index.cfm?p=banners_info%26banner_id%3D#banner_id#%26target%3D_self

CyanBlue
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.