if you're using jquery u dont even need a form. but if you do want to
serialize your parameters, that's fine. i think the easiest thing to
do is to give your form an id, making it easy for jquery to find it.
once you've got that, everything else should be easy-

On Jan 6, 10:21 am, marcus <[EMAIL PROTECTED]> wrote:
> Hi, I am very bad at Javascript so my question is perhaps silly...
>
> When I have something like this
>
> google.maps.Event.addListener(map, "click", function(overlay, latlng)
> {
>         inputForm =  '<form action="" onsubmit="store(); return false;">'
>                         + '<input type="text" id="some" />'
>                         + '<input type="text" id="thing" />'
>                         + '<input type="submit" value="Save"/>'
>                         + '</form>';
>         map.openInfoWindow (latlng,inputForm);
>
> });
>
> Is there a chance to let jQuery somehow take over? I tried to get the
> data, but I guess $('#map form').click probably just can't work,
> because the form is simply not existing at $(document).ready
>
> But is there a chance at all to do that?
>
> regards,
> Marcus

Reply via email to