mahesh Report post Posted November 11, 2008 Hi All, I want to make a marker clickable and want to open hmm suppose google.com by clicking this marker. Can anyone please help me? Thanks Mahesh Share this post Link to post Share on other sites
Arindam Report post Posted November 11, 2008 Hi, Could you please use link attribute? <markers> <definition> <marker id='01' x='360.06' y='209.57' label='Click Me' /> </definition> <application> <marker id='01' shapeId='circle' link='http://www.google.com' /> </application> </markers> Share this post Link to post Share on other sites
mahesh Report post Posted November 11, 2008 It's not working. Share this post Link to post Share on other sites
Arindam Report post Posted November 11, 2008 Hi, Could you please use this XML? Data.zip Share this post Link to post Share on other sites
mahesh Report post Posted November 11, 2008 I am providing the xml data directly to the java script. I am not using any seperate xml. Can you please guide me how to use a seperate data.xml file. I am using swfObject to prepare a Map. Thanks Mahesh Share this post Link to post Share on other sites
Arindam Report post Posted November 11, 2008 Hi, Could you please follow this link? http://www.fusioncharts.com/maps/docs/Contents/JS_setDataURL.html Share this post Link to post Share on other sites
mahesh Report post Posted November 11, 2008 Sorry but i am using SWFObject.js and using the object of this script itself. and m not able to use setDataURL to this object. Share this post Link to post Share on other sites
mahesh Report post Posted November 11, 2008 when i am trying to use link='www.google.com' (Without 'http://') it is taking the relative path which tries to find www.google.com inside the Root dir in which my html lies. It is not takin the request with absolute path which should be htt://www.google.com Can anyone please help me to sort out the thing?? Thanks Mahesh Share this post Link to post Share on other sites
Arindam Report post Posted November 12, 2008 Hi, If you want to open any other web site please use http://www.google.com. If you want to open other server program or html file with in same domain please use virtual and relative path. i.e link="other/a.html" Share this post Link to post Share on other sites
mahesh Report post Posted November 12, 2008 I am very confused. Sometime it works and some time doesn't work. Share this post Link to post Share on other sites
mahesh Report post Posted November 12, 2008 Can anyone pleaes help. It is still not working. Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 12, 2008 Hi Mahesh, To use an external link to a web site you would need to prefix it with http:// in the link attribute, as this is following the http protocol and need to specify the protocol. Otherwize, the line parser would take the link as a relative path to some URL and not a absolute URL to a site. You would need to abide by this convention. i.e. link='http://www.google.com' Could I please know, the main point of confusion that you are facing? Share this post Link to post Share on other sites
mahesh Report post Posted November 12, 2008 I am quite surprised. It is working when i am trying link='http:/www.google.com'. Note single '/' Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 12, 2008 Hi Mahesh, Could you please let us know the following things? 1. Browser and platform you are using? 2. The minor version of the map setting debug mode on 3. Provide the XML from the debug window (by copy pasting to a text file) Finally, if you are using any other code than our basic implementation samples please send to us. Share this post Link to post Share on other sites
mahesh Report post Posted November 12, 2008 Hi, i am using firefox2and using java platform(eclipse) and in my j2ee project i am using the xml to provide data to swf file through swfobject. I have uploaded the tag file in a fom of a txt file. Please have a look and let me know where i am wrong Thanks Mahesh fcWorldMap.txt Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 12, 2008 Hi Mahesh, The XML links with http:/ does not work in our labs. Could you please arrange for a live site where we can get this live over internet. Please let us know the following: 2. The minor version of the map setting debug mode on 3. Provide the XML from the debug window (by copy pasting to a text file) Share this post Link to post Share on other sites
mahesh Report post Posted November 12, 2008 I will not be able to make it live. Can i call you? Pleaes give me your contact number Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 One more confusion is there. When i am hitting a simple html, then it is working with link='http:/www.google.com' but when i am using this in my j2ee application, it is not working. Thanks Mahesh Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 Hi Sudipto, I am not getting these points: The minor version of the map setting debug mode on and Provide the XML from the debug window (by copy pasting to a text file) Please let me know how to provide this. Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 13, 2008 Hi Mahesh, Please use so.addVariable("debugMode","1"); Please note that we provide a wrapper JavaScript (FusionMaps.js) morphed from SWFObject which would help reducing lot of your pains in this implementaion. http://fusioncharts.com/maps/docs/Contents/BasicUsage.html http://fusioncharts.com/maps/docs/Contents/DataXML.html [ Using this method you can set debougMode by the bolded parameter : var map = new FusionMaps("FCMap_World.swf", "Map1Id", "750", "400", "1", "0"); ] Now when you set DebugMode on you can get a window above the map: http://fusioncharts.com/maps/docs/Contents/Debug/window.html You can see that you would get the version of the map here and the XML data. Use you mouse and select the XML data as text selection ... copy the XML and paste the XML in a blank text file...save the file and attache in your post. You can copy the XML for both caese http:// and http:/ Surely, the actual XML passed to the map would give a claer insight into the issue. Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 Thanks Sudipto for the information. Ok i have done the same thing. And please get the attached txt file that contains the actual xml data. Please have a look nand let me know where i am wrong. When i am using simple html it works with link='http:/www.google.com' but when i am using this in my j2ee application, it is not working. Please help me. Thanks Mahesh mapData.txt Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 13, 2008 Hi Mahesh, Now I am really very confused! May I know the reason why are you presuing http:/ ? Why not http:// ? Please let us know if http:// works in HTML and JSP appllication or not. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 13, 2008 Hi Mahesh, Please also check using simple HTML and http:/ using other browsers like Internet Explore 6/7/8 . It wont work. If you are facing issues with HTML or Server Application using http:// please let us know. http:/ using simple HTML works only in Firefox or even if in some other browers, this is not the correct way. We always maining some protocols, coventions... isnt it? Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 This the only thing i am worried about. When i am using link='http://www.google.com' it is not working even when i am trying to make the entire map clickable using clickURL='http://www.google.com' in tag, it is not working at all. By doing just hit and trials, i made this like link='http:/www.google.com' in simple html, it started working. I got surprised. and used same clickURL='http://www.google.com' and the entire maps was clickable and redirect me to google.com by this single '/':hehe:. OK. But when i am using the same code in my j2ee tag file, both things http:// and http:/ are not working. It creates a lot of headache to me. Please help to solve the issue. OK let me make you clear that http:// and http:/ both are not working in my j2ee application that used a jsp and tag file. AND with only simple HTML http:/ is working not http:// Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 13, 2008 Hi Mahesh, Did you try with other browsers? Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 Sorry for delayed response. Yes i have tried on IE7. Results are same. Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 Hi Sudipto, Have you got the solution of my problem. Thanks Mahesh Share this post Link to post Share on other sites
mahesh Report post Posted November 13, 2008 I am using swfobject.js instead of FusionMaps.js and using the object of the swfobject.js. Is this the point where i am going wrong?? Please get the attached js and the simple HTML. swfobject.txt TWCiWorldMap.txt Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 13, 2008 Hi mahesh, Did you try in some other machines? Is there any security setting that is getting overlooked? Share this post Link to post Share on other sites
mahesh Report post Posted November 14, 2008 Oh...thats GREAT... its working at one of my team mate machine with link='http://www.google.com'. Thanks a lot. Can you please let me know what should i do to make this working on my machine.:) Share this post Link to post Share on other sites