It works like a charm!

I really love this place, love all the gurus like Larry, lol.

On 19 Jan., 14:45, "[email protected]" <[email protected]>
wrote:
> On Jan 18, 10:18 pm, "[email protected]" <[email protected]> wrote:
>
> > I'm not sure if anyone has done anything similar with my thought
> > before.
>
> > 1. In my javascript i open an info window with an empty div
> > marker.openInfoWindowHtml('<div id="mytest"></div>');
>
> > 2. before or after above line i use jquery to load the content from
> > another page into the div by it's id:
> > $("#mytest").load("/mysite/pages/content_page");
>
> > However the info window was not refreshed, i'm sure the jquery div
> > update is working, as i test the same code with a div in the bottom of
> > my page, it just doesn't get refreshed inside the marker info window.
>
> > Could anyone give me a clue how to make it work?
>
> The infoWindow div is not part of the page DOM until after the browser
> renders it, it doesn't get rendered until after the javascript
> releases control of the processor back to the browser.  A setTimeout
> with a 1 ms delay should allow your jquery code to find it in the DOM.
>
>    -- Larry
>
>
>
> > Many thanks,
>
> > Jeru
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en.


Reply via email to