|
|
|
Forum 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.
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 10/3/2008 11:59:51 PM
Posts: 328,
Visits: 1,356
|
|
Hi, Please use escape() function for URL encode ok. It will solve your problem strURL = escape(strURL);
Thanks, Arindam FusionCharts Team www.fusioncharts.com
|
|
|
|