FusionCharts Forum: JavaScript Form Submisssions - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

JavaScript Form Submisssions

#1 User is offline   Alex M 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 10-March 08

Posted 10 March 2008 - 11:12 AM

Hi,

We are using Drill-Down feature of Fusion Charts v3 as JavaScript function call.

In essence the javaScript function simply submit form to <IFRAME> window.

It works under FF, but under IE form is not submitted.

Is this known issue? If yes , what is solution?

Kind Regards,

Alex M

TPTP
0

Other Replies To This Topic

#2 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 11 March 2008 - 07:10 AM

Hi,

There is no such issue. To check whether the JavaScript function is really being called or not can you please add an alert(134123); . If its  working, it might be some crossbrowser issue calling the IFRAME.

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#3 User is offline   Alex M 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 10-March 08

Posted 12 March 2008 - 10:43 AM

Thanks.

I have tried you suggestion and it appears that JavaScript function was not called.

Again it worked under FF and even worked under IE7 if the Report Page (simple HTML page which contains IFRAME) requested directly in browser.

But if the Report Page is requested in one of the frame windows - nothing happened - JavaScript window alert did not appear.

Then I have added a button to the form and called the JavaScript function by clicking the button - it worked, form was submitted and everything was working as intended.

Then I have change "target" attribute of the form which was pointing to IFRAME, thinking that it may confuse things, but it did not help.

It seems the issue is with calling JavaScript from Fusion Charts if the page is requested in one of the frame windows.

Any ideas?

Many thanks. 

TPTP
0

Other Replies To This Topic

#4 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 13 March 2008 - 12:53 AM

Hi,

Could you please send us the code (HTML pages) that you are using?

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#5 User is offline   Alex M 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 10-March 08

Posted 13 March 2008 - 03:46 AM

Hi,

No problem.

You may access the report page at http://content.emarket2.com/fc/report.htm

and the same page in frame window at http://content.emarket2.com/fc/frame.htm

Many thanks.

TPTP
0

Other Replies To This Topic

#6 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 13 March 2008 - 06:05 AM

Hi,

We found that the charts are being loaded from another domain. Due to some security issue of IE (may be cross-domain security patch in frames which makes the frame read-only to componets of other domains), Flash movie loaded from another domain can not interact with active content or javascript of the page of another domain. We tested putting all (swf , HTML, js) files in the same domain (within frame) and it worked fine.

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#7 User is offline   Alex M 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 10-March 08

Posted 14 March 2008 - 04:29 AM

Hi,

It is working!

Thank you very much for your help.

Regards

TPTP
0

Other Replies To This Topic

#8 User is offline   xu_zhi_hong 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 20-August 08

Posted 20 August 2008 - 03:10 AM

hi,

i have the same question above (but maybe the other reason)

my html :

<object>
<embed src="Column3D.swf" width="600" height="400" flashVars="&dataXML=<chart><set label='0' value='1' link='JavaScript:alert(1234567);'/></chart>"/>
</object>

alert message show well in xmlspy,but not work in ie6.

best regards

0

Other Replies To This Topic

#9 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1034
  • Joined: 18-March 08

Posted 21 August 2008 - 03:03 AM

Hi,
It occurs if you are running your HTML locally. By default Flash Player's security setting blocks invoking/calling JavaScript from SWF (Flash Movie), so you need to reset your setting into Global Security Setting panel.


Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#10 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 21 August 2008 - 04:34 AM

Or you can run the application from a web server live or localhost ( IIS, Apache etc).
Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#11 User is offline   xu_zhi_hong 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 20-August 08

Posted 21 August 2008 - 08:29 PM

thanks!

  thanks!:hehe:

0

Other Replies To This Topic

#12 User is offline   riclees 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 03-November 08

Posted 06 November 2008 - 04:57 AM

Excellent, sorted.



Thank you.
0

Other Replies To This Topic

#13 User is offline   Sipes 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 05-July 10

Posted 05 July 2010 - 09:52 AM

Hi there,



I'm having the same problem.



When I select the epxort to jpg option, it shows the progress bar to 100%, but the button stays inactive and says "waiting".



I've changed my global security settings and I'm running on localhost with IIS :-(



I've tried in IE 8 and Google chrome, but no luck.



Please help.



PS: Very, very impressive software. I'm evaluating, but will definately be buying. Thx
Sipes
0

Other Replies To This Topic

#14 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1593
  • Joined: 15-March 10

Posted 06 July 2010 - 12:32 AM

Hi Sipes,

Welcome to FusionCharts Forum! :(

To register the chart with JavaScript, could you please enable the parameter registerWithJS to "1"?
It's the last parameter in FusionCharts constructor function.

Ref.- var chart1 = new FusionCharts("../../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");

Please try and install Flash Player 10 or above into the system for the same purpose.

Hope this helps. :(

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic