Jump to content


Using SWFObject 2.0 with FusionMaps


  • Please log in to reply
7 replies to this topic

#1 mahesh

mahesh

    Advanced Member

  • Members
  • PipPipPipPip
  • 60 posts

Posted 18 November 2008 - 07:08 AM

Thanks for the reply.

I am using the same thing and it is running on my simple HTML but not working on my application's jsp.



Pleaes let me know why this is not working on my jsp page????



Thanks

Mahesh
mahesh

#2 Arindam

Arindam

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 730 posts

Posted 18 November 2008 - 05:36 AM

Hi Everybody,

We tried implementing FusionMaps using SWFObject 2.0. Here is a small sample attached.

Attached Files


[size="2"][size=2]Thanks,

Arindam[/size]
[/size]

#3 Sudipto Choudhury

Sudipto Choudhury

    Supreme Being

  • Administrators
  • 2099 posts

Posted 18 November 2008 - 07:51 AM

Hi Mahesh,

"Error in Loading Data" primarily means that you are providing wrong path of the XML.

Please provide correct path(URL) to XML.

** Please note that you can NOT provide absolute path (URL). We have blocked taking absolute path to stop XSS attacks. Please use relative path. Hence, please do not provide any URL like "http://....". Only "data/myXMLfolder/xml.xml" (like this).

The rule that we are following while blocking absolute url is 1. any string having a : character. So, no colon character in the XML path (dataURL) that you are providing.

If this does not solve the issue, then set the debugMode to 1 so that the chart can show up the debug window. See whether a dataURL (i.e. URL to an XML file) ahs been provided to the chart). The debug window will report this.

Hopefully, the path to the dataURL is the issue.

Regards,

Sudipto Choudhury
FusionCharts Team

I code, therefore I am.

Follow us on Twitter

#4 mahesh

mahesh

    Advanced Member

  • Members
  • PipPipPipPip
  • 60 posts

Posted 18 November 2008 - 08:15 AM

How to set the debug mode = '1' in swfobject2.0 by flash vars???
mahesh

#5 Sudipto Choudhury

Sudipto Choudhury

    Supreme Being

  • Administrators
  • 2099 posts

Posted 18 November 2008 - 08:53 AM

hi mahesh,

Hope Arindam's code might help you out in this. Please go through the code  and find the secret of your own.

Regards,

Sudipto Choudhury
FusionCharts Team

I code, therefore I am.

Follow us on Twitter

#6 Sudipto Choudhury

Sudipto Choudhury

    Supreme Being

  • Administrators
  • 2099 posts

Posted 18 November 2008 - 07:24 AM

Hi Mahesh,

Please let us know the things in details that you are facing.

Meahwhile, please check the path of the JS file, SWF files and XML files. Please also see whether you can execute any other JavaScript functions and please see if the SWFObject has beeb properly loaded.

You can also try accessing the site from other machines.

Regards,

Sudipto Choudhury
FusionCharts Team

I code, therefore I am.

Follow us on Twitter

#7 mahesh

mahesh

    Advanced Member

  • Members
  • PipPipPipPip
  • 60 posts

Posted 18 November 2008 - 07:32 AM

Hi Sudipto,

It is giving me "Error in loading data" error. Means swfobject.js is working but the problem seems to be in the way data is getting fetched from xml.



Thanks

Mahesh
mahesh

#8 RationalRabbit

RationalRabbit

    Forum Newbie

  • Members
  • 6 posts

Posted 04 June 2010 - 01:17 PM

Except than the link to his code does not download the zip file. The link says

http://www.fusioncha...achment576.aspx , which resolves to another page that, as far as I can see, has no reference to swfobject2. :)



"The man to whom something can happen must first be willing to accept that his premises may be invalid." - Inspired by Leonard Cohen & Ayn Rand