xul

changing the content of browser in XULRunner

回眸只為那壹抹淺笑 提交于 2020-01-24 19:51:26
问题 I have an Xulrunner app that loads fullscreen without any controls and loads a html page by default. The only thing it has is browser element and a popup menu visible on right click. In the popup menu there is option to quit. Then there is a menu entry 'theme2'. I want the browser to load another html when theme2 is clicked. This is my main.xul, thats loaded by default: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="main" title="Edusoft"

.setAttribute(“disabled”, false); changes editable attribute to false

☆樱花仙子☆ 提交于 2020-01-18 16:06:01
问题 I want to have textboxes related to radiobuttons. Therefore each radio button should enable it's textbox and disable the others. However when I set the disabled attribute of textbox to true, it changes the editable attribute too. I tried setting editable attribute true again but it did not work. This was what I tried: JS function: function enable(id) { var eleman = document.getElementById(id); eleman.setAttribute("disabled", false); eleman.setAttribute("editable", true); } XUL elements:

.setAttribute(“disabled”, false); changes editable attribute to false

喜夏-厌秋 提交于 2020-01-18 16:05:53
问题 I want to have textboxes related to radiobuttons. Therefore each radio button should enable it's textbox and disable the others. However when I set the disabled attribute of textbox to true, it changes the editable attribute too. I tried setting editable attribute true again but it did not work. This was what I tried: JS function: function enable(id) { var eleman = document.getElementById(id); eleman.setAttribute("disabled", false); eleman.setAttribute("editable", true); } XUL elements:

.setAttribute(“disabled”, false); changes editable attribute to false

痴心易碎 提交于 2020-01-18 16:05:05
问题 I want to have textboxes related to radiobuttons. Therefore each radio button should enable it's textbox and disable the others. However when I set the disabled attribute of textbox to true, it changes the editable attribute too. I tried setting editable attribute true again but it did not work. This was what I tried: JS function: function enable(id) { var eleman = document.getElementById(id); eleman.setAttribute("disabled", false); eleman.setAttribute("editable", true); } XUL elements:

.setAttribute(“disabled”, false); changes editable attribute to false

戏子无情 提交于 2020-01-18 16:01:24
问题 I want to have textboxes related to radiobuttons. Therefore each radio button should enable it's textbox and disable the others. However when I set the disabled attribute of textbox to true, it changes the editable attribute too. I tried setting editable attribute true again but it did not work. This was what I tried: JS function: function enable(id) { var eleman = document.getElementById(id); eleman.setAttribute("disabled", false); eleman.setAttribute("editable", true); } XUL elements:

How can I pass events on to a hidden <browser>?

試著忘記壹切 提交于 2020-01-17 12:52:28
问题 I've working on a simple view around a browser using XULRunner 1.9.2. <?xml version="1.0"?> <?xml-stylesheet type="text/css" href="chrome://global/skin/"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> <hbox equalsize="always" flex="2"> <browser flex="1" type="content-primary"/> <html:canvas flex="1"/> </hbox> </window> I've written some Javascript that handles MozAfterPaint events from the <browser> , pushes them to

How can I pass events on to a hidden <browser>?

不问归期 提交于 2020-01-17 12:52:24
问题 I've working on a simple view around a browser using XULRunner 1.9.2. <?xml version="1.0"?> <?xml-stylesheet type="text/css" href="chrome://global/skin/"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> <hbox equalsize="always" flex="2"> <browser flex="1" type="content-primary"/> <html:canvas flex="1"/> </hbox> </window> I've written some Javascript that handles MozAfterPaint events from the <browser> , pushes them to

Error (in GTK?) when trying to install EclipseXul plugin

帅比萌擦擦* 提交于 2020-01-15 11:33:52
问题 When installing EclipseXul plugin on EclipsePHP, it says: Cannot complete the install because one or more required items could not be found. Software currently installed: Shared profile 1.0.0.1288098146566 (SharedProfile_epp.package.php 1.0.0.1288098146566) Missing requirement: Shared profile 1.0.0.1288098146566 (SharedProfile_epp.package.php 1.0.0.1288098146566) requires 'SharedProfile_epp.package.php [1.0.0.1288098145696]' but it could not be found Any idea what's wrong? --update When

Single-file app with xulrunner - possible?

白昼怎懂夜的黑 提交于 2020-01-13 12:04:22
问题 I have tried to mess with xulrunner before, and now I'm trying once again :) The "real" tutorial (Getting started with XULRunner - MDN) does, in fact, show that one is supposed to have application.ini and other files ( possibly zipped as .xpi, which then requires --install-app ... ), and then the call should be like: xulrunner `pwd`/application.ini ... however, I'd like an easier way to start up - and hence, my hope for single-file XUL application approach :) ( A good note here is that one

Electrolysis compatibility shims doesn't work with evalInSandbox

若如初见. 提交于 2020-01-11 11:36:25
问题 We have a rather old XUL extension which we want to make sure works with Electrolysis. We will eventually migrate it to the WebExtensions API, but for now we want to use the compatibility shims. We can access content stuff (using window.content for example) in the some of our scripts (e.g, the overlay scripts). However, our extension also load some scripts using evalInSandbox. It look something like this: var sandbox = Components.utils.Sandbox(Components.classes["@mozilla.org/systemprincipal