| Rendair |
04-17-2009 12:48 PM |
XUL document.getElementById
Hey all
I am making my own FireFox addon and i am trying to get access to a toolbar element
PHP Code:
<toolbar id="loggerToolBar" toolbarname="My Logger" accesskey="T" class="chromeclass-toolbar" context="toolbar-context-menu" hidden="false" persist="hidden"> <toolbarbutton id="myLoggerAddSelection" tooltiptext="selection" label="Add selection to MyLogger" oncommand="firstTool_alert(this)" image="chrome://tuttoolbar/skin/address-book--plus.png" /> <toolbarbutton id="myLoggerLoginButton" tooltiptext="Search the Web" label="Login" oncommand="firstTool_gotoURL(this)" image="chrome://tuttoolbar/skin/user-green.png" /> </toolbar>
I am trying change the label of one of the toolbarbuttons but when i try and use
PHP Code:
node = $("myLoggerAddSelection");
It just says its null, but websites iv seen used this same way (well using document.getElementById instead of using prototype).
Any solutions? lol
|