mikegiddens Report post Posted March 18, 2010 I am looking for a way to not call functions to the window document but to the map object or some other specified scope. var map = new FusionMaps(this.fusionmapPath + mapInfo.swf, mapInfo.swf, mapInfo.width, mapInfo.height, this.debug, "0"); map.setDataURL( {dataurl} ); map.render(this.body.dom); map.newFunction = function( data ) { console.log("This is my data", data); } if I do a basic log in FF I get Window to be this and the scope of the object. < entity id="AL" value="1270" link="JavaScript:console.log(this, 'AL', 'Alabama', 'AL', 'Tuscaloosa County');"> My question is: Is there any way to change the scope of this to be something else when the Javascript is called? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted March 23, 2010 Hi, I am afraid, there is no direct way to do so, the FusionCharts JavaScript object and the chart object are two separate elements as well when you call a JavaScript function from a chart's link it takes window scope. Share this post Link to post Share on other sites