04-17-2009, 12:48 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: UK
Posts: 318
Thanks: 18
|
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
|
|
|