[OpenLayers-Users] Attach jQuery event to content in OL popup?

Asle Benoni asle.benoni at gmail.com
Wed Jan 27 05:52:05 EST 2010


Hello list,
I have this problem where I want to run a picture gallery inside a popup. I
have a jQuery gallery plugin that works fine but the popups are created
dynamically after all the JS and code is loaded. I am using MapFish client
and ExtJS so I found out that jQuerys
$(document).ready(function(){
has a problem together with Ext.onReady() so I put my jQuery stuff inside
the Ext.onReady and also tried outside any onLoad event.

I have tried to use LiveQuery but am not able to attach the gallery event to
dynamic created code. Does anyone do the same thing?

- click on a popup
- the popup reads WMSGetFeatureInfo() and puts content in the popup
- clicking on a gallery in the popup opens the javascript image gallery

Any help or suggestions would make me very glad!
/asle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100127/48a3de59/attachment.html


More information about the Users mailing list