IE <> FF Ajax Chart
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


12»»

IE <> FF Ajax Chart Expand / Collapse
Author
Message
Posted 7/17/2007 9:58:27 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/11/2008 6:26:36 AM
Posts: 17, Visits: 47
i setup a test page at [url=http://www.databased.at/hattrick/x-ray/pages/mystats_economy_test.asp?start=1][/url]
it works perfectly in firefox (2.0) but not in IE 6 or 7.

Sometimes it loads the startup chart in IE but as soon as i select other weeks from the dropdown and submit the page it shows no data anymore. feels like it doesnt wait until the dataXML was fully generated. but thats a n00bs call....

i know the page is messy coded but perhaps you know about cases like this?
the querystring &debug=1 can be used on the page.

Thank You
Post #1662
Posted 7/18/2007 12:28:33 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
Can you please let us know the process flow happening in that place? Like how the chart is generated first time and then when form is updated?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1670
Posted 7/18/2007 3:14:21 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/11/2008 6:26:36 AM
Posts: 17, Visits: 47
built a new testpage @ [url=http://www.databased.at/hattrick/x-ray/pages/mystats_economy_test3.asp?start=1][/url]
there the round dropdowns are now ajaxed too. the season selector still submits the form though...
at first time it seems to work in IE but after submitting (=selecting another season) the form or reloading the page it most of the times doesnt work...

the flow:
1) asp opens a filestream of a csv serverside and builds an array thats
2) output in a javascript array
3) the javascript functions i took and altered from your JS_Example.html (updateChart(), generateXML(), getProductXML()) build the XML and setDataXML for the chart
4) the per javascript implemented chart renders the XML

if the form is submitted the whole process is repeated from the beginning.

i hope thats all the info you wanted!
Post #1674
Posted 7/20/2007 2:16:01 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
Actually, there are too many processes involved in this for us to debug - as we do not have enough information on your environment too.

If you can pull it down to minimal skeletal structure required and just the exact error, we can help you debug it.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1689
Posted 7/20/2007 5:56:30 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/11/2008 6:26:36 AM
Posts: 17, Visits: 47
http://www.databased.at/hattrick/mystats_economy.htm
thats now a static page that does not use any vbscript to get the data. so just html and javascript (see source code of that page).

internet explorer behaviour:
> load the page in internet explorer for the first time and it will work.
> reload the page and most of the times it wont work anymore....
> sometimes if you hammer reload fast a few times in a row you get it to display again...
> it will work again for sure only the first time after you closed the browser and started it again

since there is nothing done serverside (except delivering the htm file) the environment is the local computer. i tried a few and everywhere the same.

cannot get the problem to show more obvious.
i hope you can help since i really tried and still try a lot to get it to work.
Post #1703
Posted 7/21/2007 3:55:05 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
Hi,

In your code, can you explain why you're doing this:

1. In DIV, using EMBED code to render the chart:

<div id="chart1div" align="center"><embed type="application/x-shockwave-flash" src="./FusionCharts3/charts/StackedColumn3DLineDY.swf" id="chart1Id" name="chart1Id" quality="high" allowscriptaccess="always" flashvars="chartWidth=725&amp;chartHeight=350&amp;debugMode=0&amp;DOMId=chart1Id&amp;registerWithJS=1&amp;scaleMode=noScale&amp;lang=EN&amp;dataXML=&lt;chart&gt;&lt;/chart&gt;" height="350" width="725"></div>
 <script language="JavaScript">     
 var chart1 = new FusionCharts("./FusionCharts3/charts/StackedColumn3DLineDY.swf?ChartNoDataText=not enough categories selected", "chart1Id", "725", "350", "0", "1");
 chart1.setDataXML("<chart></chart>");
 chart1.render("chart1div");
 </script>

This entire code section is very weird.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1714
Posted 7/21/2007 6:04:22 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/11/2008 6:26:36 AM
Posts: 17, Visits: 47
That must have happened when i saved the html via the browser ... sorry
removed it from the html testpage... behaviour still the same i am afraid :/

normally it just looks like

<div id="chart1div" align="center">FusionCharts</div>
<script language="JavaScript">
var chart1 = new FusionCharts("./FusionCharts3/charts/StackedColumn3DLineDY.swf?ChartNoDataText=not enough categories selected", "chart1Id", "725", "350", "0", "1");
chart1.setDataXML("<chart></chart>");
chart1.render("chart1div");
</script>

which should be ok
Post #1715
Posted 7/24/2007 1:16:47 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
The code here looks absolutely right. Few questions:

  • Does the chart initially load with no data?
  • Does it load everytime with no data when refreshed?
  • When data is sent through JS, does it respond properly first time?
  • When data is sent through JS, does it respond properly each time thereafter?
  • When data is sent through JS, does it respond properly when refreshed?


Thanks,
Pallav Nadhani
FusionCharts Team
Post #1721