Sign in to follow this  
face

Blanks on "dataUrl invoked"

Recommended Posts

Hello everybody.

First: Sorry for my bad english!!!!

 

I have a problem with the MultiLevelPie-Chart on my moodle-site.

Here the code:

 

<script type="text/javascript" src="Charts/FusionCharts.js" ></script>

 

<body>

<div id="chartContainer">PowerCharts XT will load here</div>

<script type="text/javascript">

 

if  ( FusionCharts( "myChartID" ) )  FusionCharts( "myChartID" ).dispose();

 

var myChart = new FusionCharts( "Charts/MultiLevelPie.swf", "myChartID", "250", "180", "1" );

myChart.setXMLUrl( "Charts/start_pie.xml" );

myChart.render( "chartContainer" );

</script>

</body>

 

But there is no Chart on my site.

 

on debug-mode:

 

Info: Chart loaded and initialized.

Initial Width: 250

Initial Height: 180

Scale Mode: noScale

Debug Mode: Yes

Application Message Language: EN

Chart Type: Multi-Level Pie Chart

Version: 3.3.1 (XT)

Chart Objects:

BACKGROUND

CANVAS

CAPTION

SUBCAPTION

DATALABELS

DATAPLOT

TOOLTIP

 

INFO: Chart registered with external script. DOM Id of chart is myChartID

INFO: XML Data provided using dataURL method.

dataURL provided: Charts/start_pie.xml

                            

dataURL invoked: Charts/start_pie.xml

                             ?FCTime=761

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

 

 

When i check the dataURL by clicking on the "dataURL invoked" link, so there are many blanks…and the link doesn’t work

(see attachment spaces.jpg)

 

if i make some changes in the code by using administration tools like firebug (deleting a blank or something else), it will be working -> i see the chart.

 

Before: see attachment link_with_blank.jpg

After: see attachment link_without_blank.jpg

 

 

I hope somebody can help me!

Thank you.

post-55711-0-53808900-1378799709_thumb.jpg

post-55711-0-33601800-1378799711_thumb.jpg

post-55711-0-41492400-1378799712_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Rishab

Hi,

Welcome to FusionCharts Forum,

We are unable to replicate your issue at our end as the code provided by you is working fine at our side. Please provide us your application sample that may help us to resolve your issue.

You may refer the sample application attached for more information. Muilti-Level_Pie_Sample_.zip

Also, please confirm if the data is relayed over Secure Sockets Layer? Is it specific to any browser?

Share this post


Link to post
Share on other sites

Thanks for your answer.

 

I have already the solution for the problem.

 

Moodle-Docu:

"load and execute the JavaScript as late as possible, ideally the script tags should be the last thing before the </body> close tag"

 

and now it works...

 

Thank you for your help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this