On 20 January 2012 19:24, BlackGuardian <[email protected]> wrote: > > To everyone else, I am asking WHY jquery does not work in Info boxes > like the example I gave, IN FULL FRICKING code.
Yes, not a link to a demonstrator. Anyway, I believe the problem is that your <span> element doesn't actually exist until the infoWindow is open and has sorted itself out. That asynchronicity is upsetting jQuery. If you posted a link to a demonstrator then I'd be able to make sure I'd got that right (or make an effort to find the real reason, if that's not right); or you could yourself with something like Firebug. Along with Rossko, I fail to see why you are using a jQuery click handler with an anonymous function when you could name that function and have it called from an onclick event on the <span> element itself. Because that onclick event is handled by the browser on a DOM object -- once the element exists in the DOM -- it should work. Does the Svennerberg book cover jQuery? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
