I said "and by using a temporary var doesn't have to check if it was added or 
not.&quot;<br>This is wrong. It&#39;s absolutley necessary to test if it was added before:<br><br>var dummy = &quot;&amp;uuu&quot;;<br><b>if (this.src.match(dummy + &quot;$&quot;) != dummy)</b> {<br>            this.src = this.src + &quot;&amp;uuu&quot;;<br>

        }<br><br>If you don&#39;t do so you will get a loop of requests to the server. To test try a layer with an invalid address.<br><br>Pietro Ianniello<br><br>