Hello to everybody,<br><br>After some investigation, I´ve found out some serious troubles in DOM manipulation in the same DOM Object that fired the event in Opera. One good example of this is the &quot;OpenLayers.LayerSwitcher&quot; object, in the &quot;onInputClick&quot; function:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">onInputClick: function(e) {<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!this.inputElem.disabled) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (this.inputElem.type == &quot;radio&quot;) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.inputElem.checked = true;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.layer.map.setBaseLayer(this.layer);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.inputElem.checked = !this.inputElem.checked;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.layerSwitcher.updateMap();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenLayers.Event.stop(e);<br>&nbsp;&nbsp;&nbsp; },</blockquote><div><br>I´ve customized the layerSwicher and changed the &quot;onInputClick&quot; function. In my layerSwitcher after clicking in a layer checkbox, it doesn´t update the map. I made this to have a button (Control) that updates the map when clicking it. After doing this I realised it doesn´t work in Opera, but works well in Safari, Firefox and IE 6,7. I think this works now in OpenLayers because it redraws again the layerswitcher, and the state of the layer is in the &quot;Layer&quot; object, not int the checkbox element itself. It works well with the &quot;labelSpan&quot; event that fires the same &quot;onInputClick&quot; function, so the problem begins when a DOM object fires an event and you must change the same DOM element that fired it. Surprisingly, it works when you changed the value to &quot;false&quot; (checked=false), but not when you have to change to &quot;true&quot;.<br>
<br>I think something happens with the OpenLayers event listener (or with Opera 9.5 beta 2) when you have to change a DOM object attribute (for example, &quot;checked&quot; attribute in a &quot;checkbox&quot; object). <br>
<br>Thanks very much for your attention...<br><br><br>P.S.: there is another version of the map viewer, if someone want to see it here is the URL: <a href="http://www.mirame.chduero.es/DMADuero_09_Viewer">http://www.mirame.chduero.es/DMADuero_09_Viewer</a><br>
<br><br><br><br></div>