Thanks Rossko, but i'm devoloping in the local environment yet thus i
don't have a link.

Anyway i'm aware of the timing issue, the element id "info_bubble" is
not exists in the DOM till 1 sec later, maybe less.

I should attach more details, this is how i load the content into the
info window:

map.addOverlay(marker);
marker.openInfoWindowHtml('<div id="info_bubble"><img src="/mysite/img/
loading.gif"></div>');
setTimeout(function() { $("#info_bubble").load("/yoomap/markers/
add"); }, 1000);

And the snippet (html source) in my content page:
<form onsumbit="event.returnValue = false; return false;"
id="MarkerAddForm" method="post" action="/mysite/markers/add">
<fieldset style="display:none;"><input type="hidden" name="_method"
value="POST" /></fieldset>
<script>
//<![CDATA[
Event.observe('MarkerAddForm', 'submit', function(event) { new
Ajax.Updater('myicons','/mysite/markers/add', {asynchronous:true,
evalScripts:true, parameters:Form.serialize('MarkerAddForm'),
requestHeaders:['X-Update', 'myicons']}) }, false);
//]]>
</script>
......
<input type="submit" id="save" value="Save"/>
</form>

On 1月24日, 下午7时04分, Rossko <[email protected]> wrote:
> > .... is there anything special in this little
> > magic area?
>
> Yes.   For example,  <div id="info_bubble">  doesn't exist in the DOM
> until a short time after the openinfowidow, so the timing of when   $
> ("#info_bubble").load(...);    is executed becomes crucial.  You
> snippet doesn't tell us about that.  Show us -
>    http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...

-- 
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