- 1 Newsgroup
- 2 Authors
- 3 Weekly Summaries
- 4 FAQ
- 4.1 How do I remove the file location header included in the default printing setting?
- 4.2 Is it possible to load the template with XML file and not rdf based source?
- 4.3 How can I manage scrolling outside the browser?
- 4.4 DrawWindow with transparent background possible?
- 4.6 How can I send XML/XUL document fragrement to the server instead of using GET or POST variables?
- 4.7 I get the error: Gecko MinVersion requirement not met.
- 4.8 Is Localizing remote XUL possible?
- 4.9 When loading an XSLT stylesheet into an XML I get the error: "Error loading stylesheet: An XSLT stylesheet load was blocked for security reasons."
- 4.10 hidechrome="true" doesn’t work on a Mac?
- 4.11 Are XUL attributes integers?
- 4.12 Using the "icon" attribute on a button
- 4.13 Dynamic Objects in Toolbar
- 4.14 Can I change a XUL tree cell/row/item background color with Javacript?
- 5 UnAnswered Questions (UAQ)
- 5.1 Getting an error in the console when inserting a subtree into a XUL document from another XML.
- 5.2 How can I find more information about TB infrastructure?
- 5.3 Throw an exception from an XSLT
- 5.4 Force browser links
- 5.5 How can I save images using canvas for a Firefox 2.0+ extension?
- 5.6 How can I access custom XPCOM Component from a XULRunner based application?
- 5.7 Can I change the shape of the edge of the Toolbarbutton element?
- Michael Lau
- Paul St-Denis
NOTE: these should be turned into links to separate pages.
- Friday September 29, 2006
- Friday October 6, 2006
- Friday October 13, 2006
- Friday October 20, 2006
- Friday October 27, 2006
- Friday November 3, 2006
- Friday November 10, 2006
- See http://www.xulplanet.com/references/elemref/ref_iframe.html, the first user note at the bottom. Change this line
var settings = PrintUtils.getPrintSettings();
- to this
var settings = PrintUtils.getPrintSettings().clone();
- settings.docURL = " "; // suppress URL on printout
- Other options you can modify are documented here:
- That feature isn't available yet. The code that implements it is waiting to be reviewed. See bug https://bugzilla.mozilla.org/show_bug.cgi?id=321171
- This problem can be solved by capturing the focus events and giving the focus to another xul element or capturing and canceling the keypress events
With Mozilla trunk --------------------------------------------------------- nsIDOMCanvasRenderingContext2D* c2d = //coming from <canvas> nsIDOMWindow* window = //coming from <iframe> c2d->DrawWindow( window, ..., "rgba(0,0,0,0)"); ---------------------------------------------------------
- This makes canvas background transparent if background is transparent but when "window" is coming from top level content window, background is not transparent.
- So how can I do this same way as <iframe>? You can't right now
- Create the element, set the datasources attribute then add the element to the document. This should then create the database.
- You can send documents using send(document), so you should be able to insert the fragment into an empty document.
- 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.
- Loading remote DTDs for XML documents is currenty not yet supported in XUL.
- The following bugs were reported on this issue.
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.
- 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.
- Attributs such as left="100" or top="200" look as if they're integers but they are actually handled as strings.
From XULPlanet.com reference:
- This attribute should be used to set the usage for common buttons. Some platforms display these buttons with a small icon indicating their usage. This should be used in place of the image attribute. Possible values include: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network. If you are using a button that matches one of these common usages, use the icon attribute to indicate this.
There may be a few ways to implement this:
- By building your menupopup from an RDF datasource, which could be generated on the server.
- By getting data (e.g. JSON string) from the server, parsing it on client, and building the menupopup using DOM methods (such as document.createElementNS).
- By getting data as XML from the server. (server can just send the XUL code to use for popup - alternatively it can send generic XML describing the attributes of the items in the menu and you generate the XUL on client by applying an XSLT transform.)
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:
- selectedtreeitem = tree.view.getItemAtIndex(tree.currentIndex);
- electedtreeitem.firstChild.setAttribute('style', 'background: #FF0000');