Hi list,
Hi friends,

i tried do use the ol popup functionality with jQuery ui tabs. But i dont
worked. JQuery ajax works very well with ol.

I use:
(JQuery tab)
$(function() {
        $("#tabs").tabs({
                                cookie: {
                                        // store cookie for a day, without, it 
would be a session cookie
                                        expires: 1
                                }
                        });
                });
(and ol popup)
function onFeatureSelect(feature) {
popup = new OpenLayers.Popup.FramedCloud("popup", 
                        feature.geometry.getBounds().getCenterLonLat(),
                    null,
                    "<div id='tabs'>"+ 
                    "<ul> <li> #tabs-1 Nodes </li> " +
                    "<li> #tabs-2 Clients </li> " +
                    "<li> #tabs-3 NMS </li> </ul>" +
                    "<div id='tabs-1'>" +
                            "<p>14 Nodes active</p>" +
                            "<p>1 new Node</p>" +
                    "</div>" +
                    "<div id='tabs-2'>" +
                            "<p>15 Clients</p>" +
                            "<p>2 Rogues</p>" +
                    "</div>" +
                    "<div id='tabs-3'>" +
                            "<p>2 Users online</p>" +
                            "<p>Server OK</p>" +
                    "</div>",
            null, true, onPopupClose);
            feature.popup = popup;
            map.addPopup(popup);
    }

I dont know why it dont worked. Have anyone an idea?

Thanks a lot for any advise,
x_tls_x
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/OpenLayer-popup-and-jQuery-ui-tabs-tp5728435p5728435.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to