Return to mozilla-dev-extensions
(↑ top)
I don't know if its working with multiple accounts, but heres a good notifier named "Get Mail" for Firefox < 2.0 ! Direct Installationurl : http://install.erweiterungen.de/GetM...5_fx_de-DE.xpi (German Version) More informations: http://webdesigns.ms11.net/chromeditp.html#getmail maybe u can use the "Google Mail Notifier"? Download here Works with Firefox 1.0 - 3.0a1
Have a look at the source of these extensions:
http://ted.mielczarek.org/code/mozilla/tabpreview/ https://addons.mozilla.org/firefox/2134/ https://addons.mozilla.org/firefox/1457/
They all show graphic thumbnails/previews of webpages.
My first thought is that you are getting the current page document but the sidebar is not the current document so you will get back a null object. You need to reference the document object of your sidebar page otherwise your ID in your sidebar will not be found. Two separate documents. You are referencing the current page document but not the sidebar's.
This was recently discussed here: http://forums.mozillazine.org/viewtopic.php?t=452372
var myBrowser = getBrowser().getBrowserForTab(myTab);
var myURL = myBrowser.currentURI.spec;
Look through the DOM using the Inspector. Find the id for the menupopup of the bookmarks. Add a click event to the bookmarks menupopup. You could then evaluate the target of the event that occurs to determine the url of the bookmark clicked. Do a search for target event xul.
I suspect this script is in a XUL file. There are 3 ways (perhaps more) to fix this:
1. Leave the script code in the XUL file but escape XML entities appropriately; e.g., < should be < > should be > & should be & " should be " etc. (see http://www.w3schools.com/xml/xml_cdata.asp for list)
2. Move the script code into a js file. Include that file in the XUL like so:
<script src="myjs.js"/>
3. Leave the script code in the XUL file but enclose the script code in a CDATA section; i.e.:
<script><![CDATA[// my code]]></script>
Try nesting your popupmenu inside your overlay for <statusbar id="status-bar">
It could be a scope problem.
var statusBarPanel = document.getElementById("my-statusbarpanel");
statusBarPanel.setAttribute("src", "myAnimatedGIF.gif");
and yes, it will animate.
Page last modified 17:56, 27 May 2007 by Ptak82