Cannot make JavaScript aware of FusionMaps in SharePoint
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Cannot make JavaScript aware of FusionMaps in... Expand / Collapse
Author
Message
Posted 5/12/2008 2:43:51 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/12/2008 3:11:16 PM
Posts: 3, Visits: 2
Hi All,

I'm not able to make javascript aware of my FusionMaps in SharePoint.  I've no problems making javascript aware of FusionCharts though.

Also, taking the same code that I'm using in SharePoint works fine when taken outside of sharepoint.  When one references elements in a web part via javascript you need to use getElementById.  After some extensive testing, I'm suspecting that FusionCharts.js is doing a better job of this than FusionMaps.js. 

Has anyone else run into this problem of making javascript aware of the maps per the instructions in SharePoint web parts?

Thanks in advance.

Post #6228
Posted 5/12/2008 3:17:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/12/2008 3:11:16 PM
Posts: 3, Visits: 2
Hey guys, I want you to know that I fixed this problem in my SharePoint environment.  If infosoft folks want the fix let me know, but basically it was as simple as grabbing some code from FusionCharts.js and copying it into FusionMaps.js.  It was a simple matter of copying this code:

 

//Added <FORM> compatibility

//Check if it's added in Mozilla embed array or if already exits

if(!document.embeds[this.getAttribute('id')] && !window[this.getAttribute('id')])

window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id'));

//or else document.forms[formName/formIndex][chartId]

I also copied in the  (mobile IE < 5) code but I'm not sure if I neede that or not.  It's working now so I'm not messing with it.

Thanks for such a great product.  You know you guys have done a good job when someone else can come in and literally copy and paste a few lines of code from the .js of one product to fix the .js (FusionCharts) in another product (FusionMaps) with very little troubles and fix their own problem.

Post #6229
Posted 5/13/2008 2:54:19 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 9:19:06 AM
Posts: 679, Visits: 1,083
Hi,

Thanks. We have updated some fix inluding this in our new FusionMaps.js in release 3.0.5. You can also download the file from Post :http://www.fusioncharts.com/forum/FindPost6239.aspx

Regards,

Sudipto Choudhury
FusionCharts Team

Post #6240
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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


Execution: 0.047.