[OpenLayers-Dev] popups.html example
Les Szklanny
lszklanny at where2getit.com
Tue Feb 6 15:12:48 EST 2007
Hi all,
I modified the mousedown() function in the popups.html example to
display a form in the popup, see below.
Why I'm not able to select with a mouse the in the input on Firefox? It
works as expected on IE 6 and Opera 9.1.
Thx,
Les
function mousedown(evt) {
if (popup == null) {
popup = feature.createPopup();
popup.setContentHTML("<a
href='http://www.somethingconstructive.net' target='_blank'>click
me</a><form><input type='text' value='test' name='from'/></form>");
popup.setBackgroundColor("yellow");
popup.setOpacity(0.7);
markers.map.addPopup(popup);
} else {
markers.map.removePopup(popup);
popup.destroy();
popup = null;
}
Event.stop(evt);
}
More information about the Dev
mailing list