So if I read this correctly, you are trying to put a clickable URL in
the info window. And because of the quotes around the .content text,
you are getting errors when you also put the quotes around the url in
the <a> tag?  If this is the problem, then the solution is very easy.
You can simply use a single quote inside the double quote (or vice
versa) to get around this. So your code will be:

new InfoWindowOptions({
    titleHTML: "<b>Title Test</b>",
    content: "<a href='http://www.amazon.com'>http://www.amazon.com/</
a>",
    hasShadow: false,
    pointOffset: new Point(15, -30)}));
});

This should hopefully give you what you are looking to achieve, good
luck!

On Nov 11, 10:24 pm, dac <[email protected]> wrote:
> Hey folks. I can't seem to get this to work in HTML with an anchor tag
> due to quotations being used twice. I know this is something simple
> that I am overlooking and would appreciate any into to get a hyperlink
> inside an info window that opens up a new window that reaches a
> webpage.
>
> Here's what I have so far. This info window comes off of a marker--the
> marker works and shows fine; same with the titleHTML, but I want the
> "content" to be a clickable hyperlink. ex.: visibly shows 
> "http://www.amazon.com/"; then when you click on it it takes you there.
>
> Code below obviously just shows the web address as static text.
>
> m2.addEventListener(MapMouseEvent.CLICK,
> function(event:MapMouseEvent):void
>                 {
>                     map.openInfoWindow(new LatLng(22.77114,
> -112.40159),
> new InfoWindowOptions({
> titleHTML: "<b>Title Test</b>",
> content: "http://www.amazon.com/";,
> hasShadow: false,
> pointOffset: new Point(15, -30)}));
>                 });
>
> THANKS!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to