You need to sign in to do that
Don't have an account?
jf317820
javascript syntax question
hello everyone, i have a question regarding an s-control i've built. it's a google maps mashup, and im trying to insert a link into the location bubble to view the particular place in google earth. i've found the correct link format (essentially the location url plus "output=kml"), but i'm having trouble getting the link to work in the s-control.
i'm formatting the bubble like so:
Code:
My problem is getting the "View in Google Earth" link to launch the url...when I click the link now, it just gives me a message stating that URL doesn't exist within Salesforce. Any help would be appreciated.
Thanks!
i'm formatting the bubble like so:
Code:
html += "<TD nowrap><font size=2 face='Arial, Helvetica, nonserif'><B><A HREF='#' onClick='openWindow(\"/" + prop.ID + "\"); return false;'>" + prop.name + "</A> </B><BR>"+prop.location+"<BR><B><A HREF=' + prop.earth + '>View in Google Earth</A></B><BR>" + prop.status +"<TD><img src='"+ prop.imageURL + " ' height=80></font></TD>"; html += "</TR></BODY>";
My problem is getting the "View in Google Earth" link to launch the url...when I click the link now, it just gives me a message stating that URL doesn't exist within Salesforce. Any help would be appreciated.
Thanks!
i need that "View in Google Earth" link to launch the value of the prop.earth field.
Message Edited by jf317820 on 05-04-2006 10:56 AM
Message Edited by jf317820 on 05-04-2006 10:58 AM
It sounds like an absolute versus relative link problem.
If you can post the actual example of a value/url that's not working, that will help.
the link should be something like: http://maps.google.com/maps?f=q&hl=en&q=110+merion+avenue+conshohocken,+pa+19428&ll=40.069927,-75.313683&spn=0.025485,0.086517&om=1&output=kml
i need the "View in google earth" link to launch the VALUE of the prop.earth field (which is a url like the one above), which is external of Salesforce.
hope this is clear enough...i think this is much simpler than i'm making it out to be
[A HREF="+ prop.earth +"]View in Google Earth[/A]