Open main menu

CDOT Wiki β

Changes

Mozilla.dev.tech.xul

1,689 bytes added, 23:04, 10 November 2006
FAQ
== FAQ ==
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/8d4a161af5f3c859/26ea3851f9b196ca#26ea3851f9b196ca What is an example of tab browser in XUL?] ===
 
:[http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser.xul#506 An example of tab browswer in XUL]
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/57d92948ee93e015/e126b4642552567d#e126b4642552567d How can i get URIs on open tabs?] ===
 
Using the following code sample,
:<pre>
:// Get browsers object
:var browsers=document.getElementById('content').browsers;
:var numBrowsers=browsers.length;
:
:for (var i=0; numBrowsers>i; i++)
:{
: var thisURI=browsers[i].currentURI.spec;
: // do something with it.
:}
:
:</pre>
The person can get the titles too using the .contentTitle tag.
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/f25c7e5dd546a005/bce0d886cf0ba703#bce0d886cf0ba703 How to add and remove values to/from, set up inside a <prefwindow> container to handle the preference?] ===
 
:<prefwidnow> can contain any control, just like a regular window. Some of them can be tied to a preference so that the preference is automatically updated as the control is manipulated. Others, like <listbox>, cannot be so tied, but one can always write a script that updates preferences explicitly, via nsIPrefBranch interface.
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/0f9029377573cfa2/ba127b8ff6c7e57b#ba127b8ff6c7e57b Can a XUL template be used for RSS?] ===
 
:You should be able to use a XUL template to display feeds, although you may have to write the feed data to an RDF datasource first.
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/1cd0d95ece50e2ed/3d56c5f2b5a56b9b#3d56c5f2b5a56b9b How do I remove the file location header included in the default printing setting?] ===
1
edit