Hello guys,
Here is the story, simple enough:
I have a submit form to create marker in the info bubble, the content
inside the info window is actually an independent page loaded into
info bubble dynamically.
------------------------------
marker.openInfoWindowHtml('<div id="info_bubble"><img src="/mysite/img/
loading.gif"></div>');
...
$("#info_bubble").load("/mysite/markers/add");
------------------------------
"/mysite/markers/add" is point to the add.php
To submit the form without refresh i firstly disable the form submit,
then with ajax power i have this line:
Event.observe('MarkerAddForm', 'submit', function(event) {
alert('come on');
new Ajax.Updater('myicons','/mysite/markers/add',
{asynchronous:true, evalScripts:true, parameters:Form.serialize
('MarkerAddForm'), requestHeaders:['X-Update', 'myicons']}) }, false);
}
However it's not working as expected, i spent quite a lot of time to
investigate, my finding is the “Event.observe” (a feature in prototype
lib) is not invoked at all in the infowindow, but it's ok when i try
the /mysite/markers/add independently in my browser url, it just not
works inside the info bubble, is there anything special in this little
magic area?
--
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.