bug in "data-file" parameter in call to swf?

Moderator: c0rdawg

bug in "data-file" parameter in call to swf?

Postby emclaughlin » Mon Mar 02, 2009 8:09 pm

It appears that when passing a URL with more than two key-value pairs in the querystring that data-file parameter is only allowing two to get through.

Here's my call to the swf object:

swfobject.embedSWF(
"/report/ofc/open-flash-chart.swf", "all_conversions_report", "950", "150",
"9.0.0", "expressInstall.swf",
{"data-file":"/report/all_conversions.php?enddate=<?php echo $strEndDate;?>&startdate=<?php echo $strStartDate;?>&clientid=<?php echo $clientID;?>"}
);

It appears to only allow two key/value pairs on the URL. Whatever value I put in for the 3rd value seems to get dumped.

I can call the all_conversions.php data file directly without issue, passing the same parameters in the query string and getting back the same JSON string as I do when I hard code the values.

Any key/value pair put in the 3rd position is lost.
emclaughlin
 
Posts: 3
Joined: Fri Feb 27, 2009 8:04 pm

Re: bug in "data-file" parameter in call to swf?

Postby c0rdawg » Mon Mar 02, 2009 10:35 pm

As said a million times before... urlencode it!
c0rdawg
 
Posts: 189
Joined: Tue Sep 23, 2008 2:00 am

Re: bug in "data-file" parameter in call to swf?

Postby monk.e.boy » Fri Mar 06, 2009 5:44 pm

this has been added to the tutorials and will go live with the next release :)

thanks!!
monk.e.boy
Founder & Project Lead
 
Posts: 653
Joined: Thu Sep 04, 2008 10:06 pm


Return to Help Me!

Who is online

Users browsing this forum: No registered users and 1 guest