Solved, i specified the size of the info window frame:
marker.openInfoWindowHtml('<div class="mytest" style="width:
300px;height:250px"></div>');

But I still would like to know is there any way to make the size of
the info window self-adapted to the content inside.

On 19 Jan., 15:45, "[email protected]" <[email protected]> wrote:
> Dear all,
>
> The captioned problem was perfectly solved by Larry's trick.
>
> But now I came up with another problem:
>
> If change the content to only 1 line of text it falls into the info
> window, no problem at all.
>
> But if the size of the content being loaded is larger than the origin
> info window
> It appears like an independent  layer hover on the info window
> (outside of the info window and the info window itself remains empty
> and the original size)
>
> My expectation is to enlarge the info window frame automatically to
> accommodate the whatever dynamically content inside.
>
> Any tips now?
>
> Thanks
>
> Jeru
>
> On 19 Jan., 15:04, "[email protected]" <[email protected]> wrote:
>
> > 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