This has helped some, but I do not get the <dialog> thing. Just what is the dialog doing that a hbox or vbox could not, and could I use those boxes in place of dialog? As far as getting values from things in the box using js, will the getElementByID() work as long as the xul and js files are named the same? Thanks.
Have a great day, Alex
----- Original Message ----- From: Jamal Mazrui <empower@xxxxxxxxx To: programmingblind@xxxxxxxxxxxxx Date sent: Wed, 9 Jul 2008 16:38:22 -0400 (EDT) Subject: Re: XUL help (Firefox add-on)
In case you haven't seen it, the Fruit Basket example in XUL
might help.
http://EmpowermentZone.com/xul_fruit.zip
Jamal On Wed, 9 Jul 2008, Alex Hall wrote:
Date: Wed, 09 Jul 2008 16:34:11 -0400 From: Alex Hall <mehgcap@xxxxxxx Reply-To: programmingblind@xxxxxxxxxxxxx To: programmingblind@xxxxxxxxxxxxx Subject: XUL help (Firefox add-on)
Hi all, I am trying to write a Firefox add-on, and I am getting more and more confused. I have a .xul file that holds a dialog box (an"hbox" element with a text field, a list box, and a button).
How
can I use Javascript to interact with my dialog box? For
example,
how can I grab the text from the textbox and put it into a URL
if
a certain option is selected in the listbox, and do something else if another option is selected? Does the js need to know where the xul file is? If so, how do you tell it? The examples I have seen have the entire xul code in xml tags, with a fewattributes I have not seen before, and have a reference to the
js
file. Either way, though, the js code has no idea what the textbox, list box, and buttons are called, so how can I get them (the xul and js) to work together?
XUL: <hbox id="test" label="test" <textbox id="text" <listbox id="options" <listitem id="googlesearch">Search Google for This Text <listitem id="wikisearch">Search Wikipedia for This Text </listbox <button id="go" label="Go!" </hbox
I have no js code yet as I am not sure what to do with it. I really appreciate any help I can get on this.
Have a great day, Alex __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind