TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   XUL document.getElementById (http://www.talkphp.com/javascript-ajax-e4x/4151-xul-document-getelementbyid.html)

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


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0