Greetings,
The long story: I'm trying to integrate qooxdoo (qooxdoo.org) with OL, and have
run into a problem…but the problem is pretty simply described though and
hopefully won't require much/any knowledge of qooxdoo. Looking for some help
getting started more likely than a full answer, though an answer would be even
better!
I have a piece of qooxdoo UI (a single button) that I'm trying to inject into
an OpenLayers.Popup.FramedCloud. The code goes pretty much like this:
var popup = new OpenLayers.Popup.FramedCloud(
"searchSelection",
new OpenLayers.LonLat(-97.0,
38.0).transform(map.displayProjection, map.projection),
new OpenLayers.Size(200, 200),
null,
null,
true,
null
);
popup.autoSize = false;
map.addPopup(popup);
var button2 = new qx.ui.form.Button("A Button");
button2.addListener("execute", function(){alert("Hello???");}, this);
var isle = document.createElement("DIV");
popup.contentDiv.appendChild(isle);
var popupIsle = new qx.ui.root.Inline(isle, false, false);
popupIsle.setLayout(new qx.ui.layout.VBox);
popupIsle.setBackgroundColor("#fff");
popupIsle.add(button2);
(You can see this in action at:
http://s89238293.onlinehome.us/olisletest/source/index.html , and look at
http://s89238293.onlinehome.us/olisletest/source/class/olisletest/Application.js
specifically for the pertinent code.)
The problem is: some part of the click events are not being propagated to the
injected elements, though many/most are. Mouse hovering produces the expected
results, and a click on the button actually manages to get into the qooxdoo
*focus* handling code. But the button doesn't click… some combination of click
or mousedown or mouseup are being caught by OL and not propagated to the
injected elements in a way that qooxdoo can understand, at least.
I know this is a problem I'll probably have to solve myself, and not likely a
bug in OL or anything, but I'm having trouble figuring out where to get
started. Where does OL begin trapping events, for example? Can anyone suggest
some things I might try to track down and/or alleviate the problem?
Incidentally, I have tried unregistering all the mouse events on the popup
itself, and it didn't help any, so I'm thinking it must be the map itself that
is trapping the event I need to find.
Here is the stackoverflow question I posted for the qooxdoo devs, FYI:
http://stackoverflow.com/questions/4036105/qx-ui-root-inline-in-an-openlayers-popup-contentdiv-button-wont-click
All help appreciated!
-Matt
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users