Not sure if that was the answer you were after Francesco, the way I read your question was a bit different, and to do what I think you&#39;re trying to do you can use layer event listeners.. which will basically do what you want.<div>
<br></div><div>i.e loadstart and loadend events.</div><div><br></div><div>&lt;code&gt; </div><div><div> layer.events.register(&quot;loadstart&quot;, layer, function() {</div><div>                this.logEvent(&quot;Load Start&quot;);</div>
<div>            });</div></div><div>or</div><div><div>layer.events.register(&quot;loadend&quot;, layer, function() {</div><div>                this.logEvent(&quot;Load End. Grid:&quot; + this.grid.length + &quot;x&quot; + this.grid[0].length);</div>
<div>            });</div></div><div>&lt;/code&gt;</div><div><br></div><div>Taken from </div><div><br></div><div><a href="http://dev.openlayers.org/releases/OpenLayers-2.11/examples/layerLoadMonitoring.html">http://dev.openlayers.org/releases/OpenLayers-2.11/examples/layerLoadMonitoring.html</a>
</div><div><br></div><div>which doesn&#39;t actually work but look at the source..</div><div><br></div><div>Toby</div><div><br><br><div class="gmail_quote">On 13 April 2012 15:18, Fernando Norte <span dir="ltr">&lt;<a href="mailto:fernando@globalgeo.com.br">fernando@globalgeo.com.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">With Firebug and jQuery.<div>Identify the box of inputs with Firebug and try jQuery methods like .each() (for each input) .onChange() (to detect alterations in form).</div>
<div><br></div><div>Remember: OpenLayers is a JAVASCRIPT framework, so, javascript knowledge is gold!</div>

<div><br clear="all"><img><br><br>
<br><br><div class="gmail_quote">2012/4/13 <a href="mailto:francescoboccacci@libero.it" target="_blank">francescoboccacci@libero.it</a> <span dir="ltr">&lt;<a href="mailto:francescoboccacci@libero.it" target="_blank">francescoboccacci@libero.it</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
i&#39;m using OpenLayers.Control.LayerSwitcher and i would like to capture the<br>
switch layer event.. How can i do it?<br>
Thanks<br>
<br>
<br>
Faancesco<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>