#20158 [Com]: Sidebar link throws javascript exception

From: Date: Wed, 30 Oct 2002 09:16:30 +0000
Subject: #20158 [Com]: Sidebar link throws javascript exception
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-13308@lists.php.net to get a copy of this message
ID: 20158 Comment by: toni.viemero@iki.fi Reported By: jonny@sanriowasteland.net Status: Feedback Bug Type: Website problem Operating System: Win2k / Mozilla 1.2a(2002101612) PHP Version: 4.3.0-pre2 New Comment: Mozilla sidebar works fine with Win98/Win2k/WinXP/FreeBSD / Mozilla 1.2b(Gecko/20021016). Perhaps this is/was a bug in Mozilla 1.2a, fixed in 1.2b. A quick search from Mozillas bugzilla didn't show up anything. Previous Comments: ------------------------------------------------------------------------ [2002-10-30 03:00:38] goba@php.net Please try another sidebar, something like http://phpug.de/ (see the mozilla and opera icons on the left). If that also fails for you, then the error is in Mozilla. BTW we use a simple function call documented by Mozilla, no special magic, so it should not be buggy... <script language="JavaScript"> function addPanel() { if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel("PHP.net Search Bar","http://www.php.net/searchbar.php",""); else alert('Sidebar cannot be added! You must use Mozilla 0.9.4 or later!'); } </script> <a href="javascript:addPanel()">add our sidebar to your set</a> You can also try this HTML fragment out... ------------------------------------------------------------------------ [2002-10-29 18:37:00] jonny@sanriowasteland.net When clicking on the sidebar link, the following javascript exception gets thrown: Error: uncaught exception: [Exception... "Component returned failure code: 0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED) [nsIDOMWindowInternal.sidebar]" nsresult: "0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED)" location: "JS frame :: http://www.php.net/sidebars.php :: addPanel :: line 70" data: no] If this is a mozilla bug rather than a php.net bug, please say so, so I can fill out a bug report on bugzilla instead. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20158&edit=1

« previous php.mirrors (#13308) next »