#20158 [Opn->Fbk]: Sidebar link throws javascript exception

From: Date: Wed, 30 Oct 2002 09:00:40 +0000
Subject: #20158 [Opn->Fbk]: Sidebar link throws javascript exception
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-13306@lists.php.net to get a copy of this message
ID: 20158 Updated by: goba@php.net Reported By: jonny@sanriowasteland.net -Status: Open +Status: Feedback Bug Type: Website problem Operating System: Win2k / Mozilla 1.2a(2002101612) PHP Version: 4.3.0-pre2 New Comment: 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... Previous Comments: ------------------------------------------------------------------------ [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 (#13306) next »