xulrunner

Does Javascript have get/set keywords like C#?

回眸只為那壹抹淺笑 提交于 2019-11-29 01:20:25
I'm working with XULRunner and came across the following pattern in a code sample: var StrangeSample = { backingStore : "", get foo() { return this.backingStore + " "; }, set foo(val) { this.backingStore = val; }, func: function(someParam) { return this.foo + someParam; } }; StrangeSample.foo = "rabbit"; alert(StrangeSample.func("bear")); This results in "rabbit bear" being alerted. I've never seen this get/set pattern used in Javascript before. It works, but I can't find any documentation/reference for it. Is this something peculiar to XUL, a recent language feature, or just something I

How to install XULRunner for Eclipse

半世苍凉 提交于 2019-11-28 13:31:11
I'm using the SWT browser widget to develop an application in Java with Eclipse ("Kepler"). Now I want to use the Mozilla API and downloaded the latest sdk from XULRunner from this site: http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/latest/ How can I tell Eclipse to use XULRunner so I can use the following code line? browser = new Browser(shell, SWT.MOZILLA); Any suggestions on the same are highly appreciated. SWT is not supporting 'latest' XULRunner. See Bug 327696 – [Browser] implement support for xulrunner >= 4.0 See also The SWT FAQ, Q: How do I specify the default type of

Is history.replaceState broken for XUL applications and plugins?

我们两清 提交于 2019-11-28 10:38:05
问题 I have a browser object in my XUL application like so: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin" type="text/css"?> <window title="Students" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="800px" height="500px"> <groupbox flex="1"> <caption label="Students"/> <browser type="chrome" src="chrome://myapp/content/index.html" flex="1"/> </groupbox> </window> And the index.html is: <!DOCTYPE html> <html>

XULRunner Error: couldn't parse application.ini.

ぐ巨炮叔叔 提交于 2019-11-28 10:36:26
I have downloaded XULRunner from http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0/runtimes/xulrunner-7.0.en-US.win32.zip Unpacked this zip into folder, but when I am issuing a command xulrunner --register-global I am getting a message couldn't parse application.ini I really have no application.ini file because it was no one in zip file. So, how to install XULRunner correctly? Support for "registering" XULRunner has been removed in XULRunner 5.0: https://bugzilla.mozilla.org/show_bug.cgi?id=642795 (it actually wasn't exactly useful anyway). So by unpacking XULRunner you

Does Javascript have get/set keywords like C#?

百般思念 提交于 2019-11-27 15:48:34
问题 I'm working with XULRunner and came across the following pattern in a code sample: var StrangeSample = { backingStore : "", get foo() { return this.backingStore + " "; }, set foo(val) { this.backingStore = val; }, func: function(someParam) { return this.foo + someParam; } }; StrangeSample.foo = "rabbit"; alert(StrangeSample.func("bear")); This results in "rabbit bear" being alerted. I've never seen this get/set pattern used in Javascript before. It works, but I can't find any documentation

Detect failure to load contents of an iframe

无人久伴 提交于 2019-11-27 07:44:35
I can detect when the content of an iframe has loaded using the load event. Unfortunately, for my purposes, there are two problems with this: If there is an error loading the page (404/500, etc), the load event is never fired. If some images or other dependencies failed to load, the load event is fired as usual. Is there some way I can reliably determine if either of the above errors occurred? I'm writing a semi-web semi-desktop application based on Mozilla/XULRunner, so solutions that only work in Mozilla are welcome. splattne If you have control over the iframe page (and the pages are on the

How to install XULRunner for Eclipse

早过忘川 提交于 2019-11-27 07:44:22
问题 I'm using the SWT browser widget to develop an application in Java with Eclipse ("Kepler"). Now I want to use the Mozilla API and downloaded the latest sdk from XULRunner from this site: http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/latest/ How can I tell Eclipse to use XULRunner so I can use the following code line? browser = new Browser(shell, SWT.MOZILLA); Any suggestions on the same are highly appreciated. 回答1: SWT is not supporting 'latest' XULRunner. See Bug 327696 –

XULRunner Error: couldn't parse application.ini.

▼魔方 西西 提交于 2019-11-27 05:53:54
问题 I have downloaded XULRunner from http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0/runtimes/xulrunner-7.0.en-US.win32.zip Unpacked this zip into folder, but when I am issuing a command xulrunner --register-global I am getting a message couldn't parse application.ini I really have no application.ini file because it was no one in zip file. So, how to install XULRunner correctly? 回答1: Support for "registering" XULRunner has been removed in XULRunner 5.0: https://bugzilla.mozilla

Detect failure to load contents of an iframe

佐手、 提交于 2019-11-26 17:42:03
问题 I can detect when the content of an iframe has loaded using the load event. Unfortunately, for my purposes, there are two problems with this: If there is an error loading the page (404/500, etc), the load event is never fired. If some images or other dependencies failed to load, the load event is fired as usual. Is there some way I can reliably determine if either of the above errors occurred? I'm writing a semi-web semi-desktop application based on Mozilla/XULRunner, so solutions that only