Javascript error in IE, but everything working with FF
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Javascript error in IE, but everything... Expand / Collapse
Author
Message
Posted 2/29/2008 3:38:35 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/7/2008 4:37:48 AM
Posts: 4, Visits: 16
Hello,

I've recently purchased FusionCharts v3 and i am very happy with it. However, i can't get the following working in IE7, however it does work perfectly in Firefox;

When i'm rendering a chart i automatically render the image, save it to disk and add it to a PDF file. This works perfectly in Firefox however in internet explorer FC_Rendered wasn't fired.

Also, a javascript error is raised when the RegisterwithJS flag is set to true (Using asp.net 2.0 here). The error is ')' is expected.

I've tried several different approaches but I just can't get it to work properly.

Side note: Right clicking the image and saving it does work in IE7.


This is how i render the chart:


Dim oConn As New SqlConnection(ConfigurationManager.ConnectionStrings("SQLConnection").ConnectionString)
Dim cmd As New SqlCommand("EXEC Rapport_AantalLeerlingen @SchoolID", oConn)
cmd.Parameters.Add("@SchoolID", Data.SqlDbType.Int)
cmd.Parameters("@SchoolID").Value = Session("SchoolID")
oConn.Open()
Dim sqlReader As SqlDataReader = cmd.ExecuteReader
Dim xmlData As New StringBuilder
xmlData.Append("<chart imageSave='1' imageSaveURL='Rapporten/FusionChartsSave.aspx' palette='1' canvasPadding='15' caption='Aantal leerlingen' xAxisName='Periode' yAxisName='Aantal' showValues='1' decimals='0' formatNumberScale='0' useRoundEdges='1'>")

While sqlReader.Read
xmlData.Append("<set label='" & sqlReader("Omschrijving") & "' value='" & sqlReader("Totaal") & "'/>")
End While

xmlData.Append("</chart>")
oConn.Close()

Dim sChartID = "nosave"
If Session("CreatingRapport") = True Then
Session("CurrentRapport") = "page1"
Session("PagesForRapport") = Replace(Session("PagesForRapport"), "page1,", "")
sChartID = "tosave"
End If

chart.Text = RenderChartHTML("../Charts/Line.swf", "", xmlData.ToString(), sChartID, "600", "350", False, True)


Thank you,

Steve
Post #4828
Posted 2/29/2008 5:33:00 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884, Visits: 1,420
hi,

Are using using the latest FusionCharts.js?

Moreover please let us know if you are using ASp.NET.AJAX?

Regards,

Sudipto Choudhury
FusionCharts Team

Post #4830
Posted 2/29/2008 7:52:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/7/2008 4:37:48 AM
Posts: 4, Visits: 16
Hello,

I'm using the js file that came with the download after i purchased the license.
I'm using prototype and scriptaculous for the ajax part.



steve
Post #4840
Posted 3/3/2008 2:53:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/7/2008 4:37:48 AM
Posts: 4, Visits: 16
No solution as of today. Can someone help me out here?

regards,
steve
Post #4860
Posted 3/3/2008 4:02:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/7/2008 4:37:48 AM
Posts: 4, Visits: 16
Problem solved.

I had to change the following to make it work:

chart.Text = RenderChartHTML("


to

chart.Text = RenderChart("


The flash needs to be activated when using RenderChartHTML and this is handled with the other function.


Regards,
steve
Post #4861
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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


Execution: 0.094.