Re: Javascript fix on website.

From: Date: Mon, 13 Oct 2003 14:58:49 +0000
Subject: Re: Javascript fix on website.
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-21495@lists.php.net to get a copy of this message
It seems that Opera 7.11 has some bugs using the javascript 'with' statement, and all pages requested on the website cause undefined object errors on line 71. Attached is a fix for this. Basically I removed the 'with' statment and just accessed the object in its full, in theory this should be compatible with all browsers. I havn't been able to test it in context of the site.
Have you tested this with Opera, and seen that it works? BTW quite odd, that Opera does not support with(){} properly, though it is a core ECMAScript construct... Goba

« previous php.mirrors (#21495) next »