I have encountered one problem when passing query strings to flash via html.
For example, we have attached the swf using swfobject:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("example.swf", "example", "702", "450", "8", "#ffffff");
so.addVariable("url", "http://www.example.com/click?id=12345&offerid=62244&type=10");
so.write("flash");
// ]]>
</script>
Here we have passed variable “url” with string “http://www.example.com/click?id=12345&offerid=62244&type=10″ but flash will truncate the string to “http://www.example.com/click?id=12345″ since it treats the variable names after “&” as separate variables, not belongs to http string etc…
Solution: replace “&” with “%26″, flash will treat the variable names belong to http string:
“http://www.example.com/click?id=12345%26offerid=62244%26type=10″
1 user commented in " Passing Query Strings Problem "
Follow-up comment rss or Leave a Trackbackgood
Leave A Reply