I said "and by using a temporary var doesn't have to check if it was added or
not."<br>This is wrong. It's absolutley necessary to test if it was added before:<br><br>var dummy = "&uuu";<br><b>if (this.src.match(dummy + "$") != dummy)</b> {<br> this.src = this.src + "&uuu";<br>
}<br><br>If you don'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>