unescape(strURL) is removing data
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



unescape(strURL) is removing data Expand / Collapse
Author
Message
Posted 2/20/2008 5:29:06 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/20/2008 5:48:10 PM
Posts: 4, Visits: 10
In debug mode I have noticed that the unescape(strURL) is removing everything after & symbol why is this

   var strURL = "createChart.php?chartType=stacked&view=all&date=2007-11-08";
   strURL = unescape(strURL);

   //alert(strURL);

   chart_chartID = new FusionCharts("flash/MSStackedColumn2D.swf", "chartID", 950, 370, "1", "1");
   chart_chartID.addParam("wmode", "transparent");
   chart_chartID.setDataURL(strURL);

result in debug mode:

INFO: Chart registered with external script. DOM Id of chart is chartID
INFO: XML Data provided using dataURL method.
dataURL provided: createChart.php?date=2007-11-28
dataURL invoked: createChart.php?date=2007-11-28

ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are:
No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242
Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security.
Network error

as you can see by the highlighted red part the whole url string is not being passed. please help.

Post #4610
Posted 2/21/2008 12:02:37 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 8:17:09 AM
Posts: 210, Visits: 1,098

Hi,

Please use escape() function for URL encode ok. It will solve your problem

 

strURL = escape(strURL);

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #4612
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:38pm


Execution: 0.078.