1
edit
Changes
→FAQ
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-10-27 Friday October 27, 2006]
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-11-03 Friday November 3, 2006]
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-11-10 Friday November 10, 2006]
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-11-17 Friday November 17, 2006]
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-11-24 Friday November 24, 2006]
# [http://developer.mozilla.org/en/docs/Newsgroup_summaries:mozilla-dev-tech-xul:2006-12-01 Friday December 1, 2006]
== 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?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/1a1949a4642f44ad/2d6959f8371fa69e#2d6959f8371fa69e I get the error: Gecko MinVersion requirement not met.] ===
:Visit http://developer.mozilla.org/en/docs/Getting_started_with_XULRunner#Step_4:_Set_up_application.ini to find out how to properly set up the application.ini file.
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/52750962db5f67dc/59ea86f711094f43#59ea86f711094f43 Is Localizing remote XUL possible?] ===
:Loading remote DTDs for XML documents is currenty not yet supported in XUL.:;The following bugs were reported on this issue.:;https://bugzilla.mozilla.org/show_bug.cgi?id=22942:;https://bugzilla.mozilla.org/show_bug.cgi?id=133698
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/46c956df329be561/0cc354d668e2a3d9#0cc354d668e2a3d9 When loading an XSLT stylesheet into an XML I get the error: "Error loading stylesheet: An XSLT stylesheet load was blocked for security reasons."] ===
:That error is from a security check that has been put up to safeguard against cross-site-scripting attacks.
:A scheme is in development to allow servers to open up their site for cross-site access, but that's not yet done.
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/b15d601bbeb4e4de/61ec4be93c26c852#61ec4be93c26c852 hidechrome="true" doesn’t work on a Mac?] ===
:Unfortunately, no simple solution to this was posted. A workaround is to open the content in a new window using "window.open" and send titlebar=”no” as one of the flags in the 3rd argument.
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/95da86a0014e6ae4/89995304ae2089a3#89995304ae2089a3 Are XUL attributes integers?] ===
:Attributs such as left="100" or top="200" look as if they're integers but they are actually handled as strings.:To use them as integers use JavaScript's [http://www.w3schools.com/jsref/jsref_parseInt.asp parseInt()] function.
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/ed8140804433a206/a347e9844466abf2#a347e9844466abf2 Using the "icon" attribute on a button] ===
To set the background color you need to set the property for the cell/row and not for the item.
An example of this is:
== UnAnswered Questions (UAQ) ==
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/c48b0997c211cb30/09fd369cfd27a782#09fd369cfd27a782 How can I center image/text within the toolbarbutton element in a xulrunner application?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/8a8e3939a2fad620/51c738063ead0511#51c738063ead0511 Issues with relative path in a jar in XUL] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/010fe5746a11183e/3e59469982739735#3e59469982739735 How can I create global observers for my XUL applications?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/2354e3354d47478a/94806ab7d3a7d4c8#94806ab7d3a7d4c8 Is there a XUL function that will allow a script to determine the ID or handle of the active window task?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/b1141a8d850db281/50a5fd68808a3afc#50a5fd68808a3afc Getting an error in the console when inserting a subtree into a XUL document from another XML.] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/19c4ac28a33071b3/3562fb411ad0f106#3562fb411ad0f106 Can I change the shape of the edge of the Toolbarbutton element?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/41a1096602618693/fd3527c2490338b8#fd3527c2490338b8 Custom alert window] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/bc3b2322803e8178/87ca61ab171cbd55#87ca61ab171cbd55 Updating observes attribute] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/62f0d1fb0ed52543/77ee30fd2fef45e6#77ee30fd2fef45e6 Hover Help on Dynamically Generated XUL Elements] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/842dfac328743b80/f8eb7fb268354c80#f8eb7fb268354c80 Is there an example of scrollingrows.xul from the firefox source?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/a1246bb44631f0d0/9389e7e2cb624055#9389e7e2cb624055 How do I make my XULRunner application run in front of all my applications on OSX?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/73930957246a9c93/a9a335c545b1934a#a9a335c545b1934a Toolbar and side bar syntax problem] ===