[jQuery] Re: Working with data from a GoogleMaps InfoWindow

2008-01-07 Thread chrismarx

can u post a link?


On Jan 6, 4:52 pm, chrismarx <[EMAIL PROTECTED]> wrote:
> 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 =  ''
> > + ''
> > + ''
> > + ''
> > + '';
> > 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


[jQuery] Re: Working with data from a GoogleMaps InfoWindow

2008-01-06 Thread marcus

Meanwhile I found livequery, which is probably the solution, but I
still I don't get it working. Can someone perhaps give me a hint??

I gave the form an id and tried this (Unfortunately the parent divs
don't have proper names and ids...)

$('#touch').livequery('submit', function() { alert('clicked'); return
false; });


[jQuery] Re: Working with data from a GoogleMaps InfoWindow

2008-01-06 Thread chrismarx

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 =  ''
> + ''
> + ''
> + ''
> + '';
> 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