Difference between revisions of "Mozilla.dev.tech.xul"
(→Weekly Summaries) |
|||
Line 72: | Line 72: | ||
;https://bugzilla.mozilla.org/show_bug.cgi?id=133698 | ;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. | ||
== UnAnswered Questions (UAQ) == | == UnAnswered Questions (UAQ) == | ||
Line 81: | Line 89: | ||
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/ad380fd21ea3467d/467edc27056190b0#467edc27056190b0 Throw an exception from an XSLT] === | === [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/ad380fd21ea3467d/467edc27056190b0#467edc27056190b0 Throw an exception from an XSLT] === | ||
+ | |||
+ | === [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/47a4ec9b04385cbd/5b1a583c7ccca74f#5b1a583c7ccca74f Force browser links] === |
Revision as of 19:43, 20 October 2006
Contents
- 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.5 I want to create dymanically multiple elements with datasource attribute. I want to create XUL element in the javascript, assign datasources/ref/template attribute to it so that the content is generated from the rdf datasource
- 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?
- 5 UnAnswered Questions (UAQ)
Newsgroup
Authors
- Michael Lau
- Paul St-Denis
Weekly Summaries
NOTE: these should be turned into links to separate pages.
FAQ
How do I remove the file location header included in the default printing setting?
- 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:
Is it possible to load the template with XML file and not rdf based source?
- 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
How can I manage scrolling outside the browser?
- 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
DrawWindow with transparent background possible?
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
I want to create dymanically multiple elements with datasource attribute. I want to create XUL element in the javascript, assign datasources/ref/template attribute to it so that the content is generated from the rdf datasource
- Create the element, set the datasources attribute then add the element to the document. This should then create the database.
How can I send XML/XUL document fragrement to the server instead of using GET or POST variables?
- You can send documents using send(document), so you should be able to insert the fragment into an empty document.
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.
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
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.
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.