Click Event Registered with jQuery Live in Google Map InfoWindow

I was using the technique described here [https://stackoverflow.com/questions/2217267/click-event-in-google-map-infowindow-not-caught][1] to dynamically add click event handlers to some of the content added to the Google Map InfoWindow. Works great except in IE. I have content with normal anchor tags and those links work just fine. I have an anchor tag with a jQuery (live) click handler read the id to trigger some other action and it does nothing in IE. Chrome/FF etc work just fine. I've tried using a div and span with no change to the behavior. Any ideas? **Edit:** This is with Google Maps v2 (I do know it is deprecated) and doesn't work in IE 7 or 8. Haven't bothered with IE6 on this project. **Edit:** Here is a some sample code that repos the behavior.
[1]: https://stackoverflow.com/questions/2217267/click-event-in-google-map-infowindow-not-caught
Are you using Google Maps v3 or v2? Also - which versions of IE - 6/7/8 ?

以上就是Click Event Registered with jQuery Live in Google Map InfoWindow的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏