Hello,
Neil Harris neil@tonal.clara.co.uk schrieb am Sat, 03 Sep 2005 15:31:59 +0200:
Working with some small test pages stripped down from the source code seems to disprove the above guesswork, as putting the script in <head> seems to work fine. However, using Firefox's Javascript console, and visiting wikipedia.fr, I get the following error:
Error: uncaught exception: Permission denied to call methodLocation.toString
However, visiting http://fr.wikipedia.org/wiki/Accueil does not.
wikibits.js has an exeption to this for http://www.flacus.de/wikipedia/Interwiki-Link-Checker/wiki.php, which is a very good tool. The JavaScript code for this is:
if (window.top.location != 'http://www.flacus.de/wikipedia/Interwiki-Link-Checker/wiki.php') { window.top.location = window.location; }
But it is NOT possible to access "window.top.location" if window.top is on another domain/server - thats why firefox says, that the permission of getting "location" was refused. Opera says "message: Security error: attempted to read protected variable".
It doesn't work on firefox, opera 8 and IE6/7.
Sorry, but I don't have a solution for that.
Christian Thiele