[mapguide-users] Re: call javascript:window.open inside a tooltip

Wilson Herrera wherrera at pccadpanama.com
Wed Jun 23 17:10:30 EDT 2010


in fact, you can put javascript anywhere.

according to this page

http://themapguyde.blogspot.com/2009/07/expressive-power-of-mapguide-tooltips.html

a tooltip is only another 
 tag, so i would be able to inject javascript code in the old fashion like
this (actual tooltip in the layer definition):

"javascript:window.open('index.html',null,'menubar=no');"

this javascript is used in a  onclick property on a image whithin the
toooltip (i can't post the code because i dont know how to insert html code
here).

if i use, lets say, a alert

like: javascript:alert("hello");

if works fine, but in the code provided above it, it simply throws an error.

i tried escaping the text (\'') to no avail.

maybe should i specify this javascript inside the fusion index.html itself?
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/call-javascript-window-open-inside-a-tooltip-tp5214817p5215227.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100623/7747879d/attachment.html


More information about the mapguide-users mailing list