wmorris20 Report post Posted February 1, 2010 Before switching to FusionMaps, I used an imagemap with an ajax call to dynamically call another page in a cluetip window with the specific location (marker) parameters. I'd like to continue with a similar setup; however, I'm having troubles accessing the XML tags within the setDataXML() method. My attempts so far have been trying to assign a javascript function to the 'link' property of the marker. Do you have any examples that may help me? Thanks, Ward Share this post Link to post Share on other sites
wmorris20 Report post Posted February 1, 2010 I've been messing around with the Drill Down demo, but I've run into an issue with the string delimiter. Your demo uses an external xml sheet but I need to call setDataXML(). I get 'invalid XML data' for link='JavaScript:myJS("356, blah");' and link="JavaScript:myJS('356, blah');" I've also tried each scenario with the back slash delimiter without any luck. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 1, 2010 Hi, Could you please try using j-{user function name}-{parameter} format for the JavaScript link? Ref.- http://www.fusioncharts.com/docs?/DrillDown/JavaScript.html For example :- <set...link="j-myJS('blah', 356)"/> Hope this helps. Share this post Link to post Share on other sites
wmorris20 Report post Posted February 2, 2010 (edited) That won't work, because it looks something like this: setDataXML("<marker id='001' link="j-myJS('blah', 356)" />") No matter which way I order the single and double quotes, there's a conflict with the setDataXML quotes. Edited February 2, 2010 by Guest Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 2, 2010 Hi, Could you please send us the sample of the codes that you are using? Awaiting your reply. Share this post Link to post Share on other sites
wmorris20 Report post Posted February 3, 2010 Thanks for your continued help to solve this problem of mine. Attached is the full FusionMaps generation statement. jscript_test.txt Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 3, 2010 Hi Moris, Thanks for your appreciation. Could you please send us the XML codes that you are using as an attachment? Awaiting your reply. :hehe: Share this post Link to post Share on other sites
wmorris20 Report post Posted February 4, 2010 Did you open the attachment? The XML is in it. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 5, 2010 Hi Ward, Could you please try using the internal ID of the Iraq Map referring to the link below :- Ref.- http://www.fusioncharts.com/maps/docs?/MapSS/Iraq.html http://www.fusioncharts.com/maps/docs/MarkerXML/IraqData.xml Hope this helps. Share this post Link to post Share on other sites
wmorris20 Report post Posted February 5, 2010 I think you may have a typo in the first link. It just takes me to the main FusionMaps doc location. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted February 5, 2010 Hello, Apologies for the inconvenince. Please refer to the correct link provided below: http://www.fusioncharts.com/maps/docs/Contents/MapSS/Iraq.html Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 6, 2010 Hi, Could you please try referring to the link below for the internal ID of the Iraq Map. Ref.- http://www.fusioncharts.com/maps/docs/Contents/MapSS/Iraq.html Hope this helps. Share this post Link to post Share on other sites
wmorris20 Report post Posted February 9, 2010 I was never able to successfully reference the internal IDs of the markers and use ajax cluetips; however, I wrote this script which simply shows/hides a div with a XMLHttpRequest call: function map_popup(id, title, worktype, programphase) { openPopup(true, "map_popup"); var element = document.getElementById('map_popup'); var http = new XMLHttpRequest(); var url = "./../requesthandler/request_handler.php"; var params = "title=" + title + "&id=" + id + "&worktype=" + worktype + "&programphase=" + programphase + "&requestType=info"; http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { element.innerHTML = http.responseText; } } http.send(params); } Share this post Link to post Share on other sites