#20158 [Fbk->Csd]: Sidebar link throws javascript exception
| From: | jonny at sanriowasteland dot net | Date: | Tue, 05 Nov 2002 23:48:49 +0000 |
| Subject: | #20158 [Fbk->Csd]: Sidebar link throws javascript exception | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-13402@lists.php.net to get a copy of this message | ||
ID: 20158
User updated by: jonny@sanriowasteland.net
Reported By: jonny@sanriowasteland.net
-Status: Feedback
+Status: Closed
Bug Type: Website problem
Operating System: Win2k / Mozilla 1.2a(2002101612)
PHP Version: 4.3.0-pre2
New Comment:
The Problem was a broken install of mozilla.
Previous Comments:
------------------------------------------------------------------------
[2002-10-30 03:16:30] toni.viemero@iki.fi
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.
------------------------------------------------------------------------
[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