View Single Post
Old 04-17-2009, 12:48 PM   #1 (permalink)
Rendair
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default 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
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote