Clearing cache doesn't work
In my XULRunner application I have an iframe containing a html document.
When changing images referenced in the html document I still get the old
(cached) images.
I clear the cache using this method:
var classID = Components.classes["@mozilla.org/network/cache-service;1"];
var cacheService =
classID.getService(Components.interfaces.nsICacheService);
var c = Components.interfaces.nsICache;
cacheService.evictEntries(c.STORE_ON_DISK);
I tried c.STORE_ANYWHERE too but I still get the cached images. This
worked for older version of XULRunner and it works in a chrome window
usi
|
3/11/2010 12:25:13 PM
|
3
|
Daniel Kirsch <Iwillnotread_dan...@gmx.de>
|
|
LiveConnect and XUL Runner on Mac
Hello,
I am trying to use LiveConnect to call some Java functions using LiveConnect
on OSX. I've done some googling and it seems a bit ambiguous whether or not
this even works anymore - I understand there was a lot of code cleanup
around Mozilla 2.x and LiveConnect. Complicating things is the fact that
Apple insists on shipping its own version of Java. But I'm hoping that this
should still work.
I've tried the basic recipe from the Mozilla site:
var clazz = java.lang.Class.forName("com.getbuzzbird.myClass",true,loader);
var method = clazz.getMethod("myMethod",[]);
method.invo
|
3/11/2010 12:50:38 AM
|
0
|
Mike Desjardins <desjardinsm...@gmail.com>
|
Tree drag n drop tutorial
Hi
I am pretty new to XUL and I am having trouble getting into drag n
drop for tree rows. I know that there are tutorials for dragging
content, like an image, into the XUL app, but they are pretty complex.
I have a tree with data (not template) and I want the user to be able
to sort the rows in the table by dragging and dropping. I would be
very grateful if someone experienced could show the easiest way to do
this. Just changing the sort order, nothing more.
Regards
Erik
|
3/7/2010 11:45:49 PM
|
0
|
Erik Lindblad <eriklindbl...@gmail.com>
|
Printing XUL pages
Hi,
I want to print the manual of my XulRunner application. The manual is
XHTML with embeded IFRAMES containing the original XUL files of the
application. On screen I see the IFRAMES filled with original screens
like screenshots but not as dead as screen shots but clickable with
working functionality. But when I print this manual only the XMTML is
printed, the IFRAMES are printed as empty boxes.
What must I do to get the XUL content inside the IFRAMES printed too?
|
3/7/2010 2:11:00 PM
|
2
|
=?UTF-8?B?R2VvcmcgTWFhw58=?= <ge...@bioshop.de>
|
Sorting
I have a XUL app that uses a tree. The first column in the tree is
for an inventory number. These numbers are auto-generated by
Javascript. Currently when sorted, the numbers don't sort like a
human would expect. IE - 10 comes before 1 instead of the reverse.
I understand this is how Javascript works but I still have two
questions that I can't find answers to out on the web:
1) is there something in XUL that can be done to sort with a more
expected result?
2) If not, can anyone point me to a Javascript method that will do
what I want?
Thanks in advance...
|
3/6/2010 4:24:51 PM
|
4
|
reverendlinux <reverendli...@googlemail.com>
|
Input problems within XUL browser element
I've written a Firefox extension that creates a sidebar. The sidebar
UI is implemented in HTML by encapsulating it within a XUL browser
element.
The XUL container for the HTML UI looks something like this -
<vbox>
<browser id="mySidebar">
</browser>
</vbox>
I fill in the HTML UI dynamically via Javascript
// Get the XUL browser element
var sidebar = document.getElementById('mySidebar');
// Access the document object for the browser element
var sidebarDocument = sidebar.contentDocument;
// Create an HTML input box and append it to the browser document
|
3/6/2010 2:17:27 AM
|
0
|
Aamer <ahyd...@gmail.com>
|
Problem with localization
Hi,
I have this problem when I try to localize my XUL application.
This is my folder configuration:
MyApp
|--chrome
| |--chrome.manifest
| |--content
| | |--main.xul
| |--locale
| | | --en-EN
| | | --main.dtd
|--component
|--defaults
| |--preferences
| |--prefs.js
|--extrensions
In the chrome.manifest I add this line:* local MyApp en-EN /local/en-EN*
In the main.xul I add this line bofore <window></window>: *<!DOCTYPE
window SYSTEM "chrome:
|
3/5/2010 2:24:09 PM
|
0
|
Foglia's Laboratory <l...@badstorm.it>
|
Menulist: Menuitem with multiple elements
Hi,
I'm new in XUL. I'm developing a little application and I need to have a
menulist, with some items with multiple caption inside.
I try this code:
<menulist editable="true">
<menupopup>
<menuitem>
<box orient="horizontal">
<caption label="One" />
<caption label="Two" />
<caption label="Tree" />
</box>
</menuitem>
<menuitem label="Four" value="2"/>
<menuitem label="Five" value="3"/>
<menuitem label="Six" value="4"/>
</menupopup>
</menulist>
It works. But when I select the item with multiple captions, the main
label of the menulist remain blank.
There is a method to
|
3/5/2010 8:38:22 AM
|
1
|
Foglia's Laboratory <l...@badstorm.it>
|
Can i add a button inside a tooltip
Hello all,
I added a button inside a tooltip, its rendering OK, but its not
clickable.
Ideas?
|
3/5/2010 8:16:13 AM
|
0
|
evyatar <evyatar.shor...@gmail.com>
|
contenteditable not working in xul window
Hello everybody,
I have a xul runner applications and at a certain moment I have use
several html editors. I was thinking that it is much easier to write +
handle something like
<html:div contenteditable="true">some content to be edited</html:div>
rather than <xul:editor>, etc. This works very well into an xhtml
document, but into a xul one, the editable div gets focus and the dotted
border, but remains read-only. Am I missing something or there is a bug?
Or this is the intended behavior? In any case, I am finding this feature
very useful because in my case not only simplifies
|
3/4/2010 10:18:54 AM
|
0
|
mir <mirion...@gmail.com>
|
SQLite as datasource: path with blanks?
Hi,
I'm having a XUL application loading data from an SQLite datasource,
using code like
<menulist label="Please select user" id="user_menuList" >
<menupopup id="user_list" flex="1"
datasources="rdf:null" ref="*" querytype="storage">
<template>
<query>
SELECT id, first, last, active FROM users WHERE active ==
'yes'
</query>
<action>
<menuitem uri="?" label="?last^, ?first"
oncommand="userSelected( this.className )" class="?id" />
</action>
|
3/2/2010 10:00:37 AM
|
2
|
Paul Miller <pmiller....@gmail.com>
|
get url from closed tab
Hi,
I'd liked get the url of a just closed tab. I use this monitor :
gBrowser.tabContainer.addEventListener("TabClose", onTabClose, false);
....and this function :
function onTabClose{
browser = event.target.linkedBrowser;
var url = browser.baseURI;
var url2 = browser.aLocation.spec;
var url3 = browser.currentURI.spec;
dump("NVonTabClose: url1: " + url + " url2: " + url2 + " url3: " +
url3);
}
However, noone of those methods get the url (undefined message). Other
idea ?
Thanks,
Thibaud.
|
3/1/2010 1:22:46 PM
|
1
|
thibaud <hulin.thib...@gmail.com>
|
add an element to a tree quickly
Hi,
I use a xul tree in my extension, but the tree has a important number
of element, about 10.000. When I add a child in the sqlite base, I do
a document.getElementById("ed-index-tree-observed").builder.rebuild();
However, this method is very long, because xul compute all the tree,
for only a new element. Is there a quickest method ? See above my vbox
script in xul.
Thanks,
Thibaud.
[CODE]
<vbox id="ed-index-vbox-observed" flex="1">
<tree id="ed-index-tree-observed" flex="1"
datasources="profile:ergodoc.sqlite"
sortDirection="descending" sort="?id"
|
2/26/2010 10:04:12 AM
|
2
|
thibaud <hulin.thib...@gmail.com>
|
This is not a valid instalation package -207
Hi!!!
I'm developing one firefox extension and I get this error when I try
to install it.
"This is not a valid instalation package -207"
Do you know what could be the error?
Thanks.
|
2/25/2010 9:58:59 PM
|
0
|
Rui <rpfelguei...@gmail.com>
|
Multiple XULRunner instances
I created a simple XULRunner app by following the tutorial
https://developer.mozilla.org/en/Getting_started_with_XULRunner.
How can I execute the app in multiple processes? Currently, if I
execute the app multiple times on Windows, multiple windows will pop
up but they all live in the same xulrunner.exe process.
|
2/24/2010 8:05:01 PM
|
0
|
Ben <benf...@gmail.com>
|
Selection color changes when control loses focus
I have a tree control that has an item selected. While the control has
focus,
the item is blue (and it is clear it is selected). However, when the tree
control
loses focus, the selection color becomes a sort of gray, which makes it hard
to
determine which item in the tree is selected.
Is there a way to keep the selection blue even when the control loses focus?
Thanks,
-- Greg
|
2/22/2010 4:34:05 PM
|
0
|
"Greg Allen" <gregory.al...@sierraatlantic.com>
|
Nested XUL Template with Storage workaround
Hi,
I tried to find a workaround to have a nested template with a storage
querytype in FF3.6. The aim of this sidebar is to display an historic
of the various translation requested during the last days (good to
review and learn vocabulary). All search history and translation are
stored in the sqlite database in 2 different tables. Here is the tree
that i try to create with those tables:
Today //all today request
>[english word 1]
>>[translation 1-1]
>>[translation 1-2] //The tricky thing is that obviously a word may have many different translations
>[e
|
2/21/2010 6:42:00 PM
|
0
|
"(Olive)" <over...@gmail.com>
|
Private JVM?
Can I put a JVM inside my XULRunner (which is setup as private to my
XUL application)?
I tried copying all the files from Sun JRE6 install into /xulrunner/
plugins/jvm/, just hoping that might work.
Does anybody know the search process XULRunner uses to find JVM?
I'm building for Windows and Linux, so information on either would be
helpful.
BTW, the same setup displays my JVM just fine (via about:plugins) when
the same JVM is truly installed in the OS. I get nothing for Java
when the only JVM that exists is my private one.
|
2/19/2010 5:59:22 PM
|
3
|
David_Frahm <dfr...@teamhuber.com>
|
FF3.6 crashes for XUL template
Hi
I have a FF extension that runs something like this:
<hbox datasources="http://localhost:4000/api/competitions.xml"
ref="*" querytype="xml">
<template>
<query expr="//competition"/>
<action>
<button uri="?id" label="?name" value="?id"/>
</action>
</template>
</hbox>
This works as expected and creates one button per result. But when I
instead try to create a listbox with the following code:
<listbox datasources="http://localhost:4000/api/
competitions.xml" ref="*" querytype="xml">
<temp
|
2/17/2010 5:25:53 PM
|
0
|
Erik Lindblad <eriklindbl...@gmail.com>
|
Make an editable custom tree view?
I have a tree that I have set up to be editable. However, when I
double-click on a cell nothing happens.
Do I need to handle the double-click event? I thought that would be handled
by default from nsITreeView.
I have set editable=true on the tree and each individual tree column. And my
view has isEditable always
returning true. The code I am using follows if that helps...
What am I missing?
Thanks,
-- Greg
The tree declaration:
<tree id="mytree class="mycalet-tree" flex="1" enableColumnDrag="true"
editable="true">
<treecols>
<treecol id="publishInvi
|
2/12/2010 1:23:01 PM
|
0
|
"Greg Allen" <gregory.al...@sierraatlantic.com>
|
Mac Menu Issue
A xulrunner app running on a universal binary of 1.9.07 on Leopard no
longer shows the full default menu. It only shows the app name and
there are no choices available such as shutting down the program.
Is there some setting in a plist file that is missing or something?
thanks,
jack
|
2/11/2010 11:53:56 PM
|
0
|
sj <slowj...@gmail.com>
|
center treecell image
I shouldn't be banging my head over this but, anyone know of a way to
center the image set via 'src' in a treecell. I think I'm having
trouble because the image is controlled by list-style-image. It would
be nice if I could set the image using css background-image.
|
2/11/2010 1:43:07 PM
|
0
|
The Rhino <ryankeithstep...@gmail.com>
|
Embed XUL objects in a custom tree view?
Is it possible to insert a XUL element in a treecell of a custom tree view?
I am loading the tree from an array created in JS. I want to create an XUL
image object, complete with src and onclick attributes, and then put it in
the treecell.
I have tried the obvious - just creating the object and putting it in the
tree. What
appears in the tree, however, is the label "[object: XULElement]".
Is there something I need to do in the custom tree view to make this object
work correctly inside the tree? Is this even possible?
Thanks,
-- Greg
|
2/10/2010 4:04:07 AM
|
0
|
"Greg Allen" <gregory.al...@sierraatlantic.com>
|
can't access extension javascript from html within editor xul
Hi,
I've dynamically added an xul editor in my extension and using
execCommand:inserthtml add a button to that editor with an onclick
event that calls some javascript from my extension. I can see the
button fine in the editor and can click on it, but the onclick event
never fires as far as I can tell. I know onclick is set using Dom
Inspector. Even with just an alert, though, nothing happens.
Any ideas?
Thanks,
Dan
|
2/9/2010 5:22:44 AM
|
0
|
dstarin <dsta...@firepeers.org>
|
tree builder listener for sqlite datasource
I have used the example from...
https://developer.mozilla.org/en/XUL/Template_Guide/Template_and_Tree_Listeners
....to save and restore the selected index after rebuilding a tree.
Problem is, my tree is generated using an sqlite datasource...
EG: <tree id="MyTree" datasources="profile:data.sqlite"
querytype="storage" ref="*" flags="dont-build-content"
here is my listener object....
var treeReselectionListener = {
item: null,
willRebuild : function(builder) {
this.item = builder.getResourceAtIndex(builder.root.currentIndex);
},
didRebuild : function(builder)
|
2/8/2010 6:26:36 PM
|
0
|
Ryan S <ryankeithstep...@gmail.com>
|
Template RDF Style
Hi,
i have a rdf template, and want to set the background-color of the
element with the value from the rdf but this does not work:
<vbox id="vboxL" datasources="../rdf/lvplan.rdf.php"
ref="http://www.example.com/lvplan/alle">
<template>
<rule>
<grid uri="rdf:*">
<columns>
<column />
<column />
</columns>
<rows>
<row style="background-color:
rdf:http://www.example.com/lvplan/rdf#color;" >
<label value="rdf:http://www.example.com/lvplan/rdf#text"/>
</row>
</rows>
</grid>
|
2/8/2010 4:51:08 PM
|
0
|
=?ISO-8859-15?Q?Andreas_=D6sterreicher?= <inva...@example.com>
|
Java or C++ for XUL / Gecko programming?
I am a relatively inexperienced, intermediate Java programmer. Before I
devote more time to learning Java I need to know if it is possible to do
a few things that I need to do. These things are directly connected to
Firefox so I am posting the question here. I appreciate any help anyone
can give me.
I need to build a desktop application that can display HTML based
content. It needs to be able to display the same kinds of content that
can be displayed in the user's Firefox browser. In other words, if the
user's Firefox installation can display Flash then my app needs to be
able to di
|
2/8/2010 4:11:43 AM
|
0
|
Grant Robertson <Gran...@demml.org>
|
XUL Standalone application and Java applet
Hi,
After much of searching, I am not sure if I am looking for correct
"search terms", so any help/suggestions are helpful.
Here is the question,
I have an iframe showing local html file in a Standalone XUL
application. In that local html file, I have a code
alert(navigator.javaEnabled());
and I am always getting false as a result. This local file loads the
java applet but as this result is false, so the applet is not getting
loaded at all.
So, How do I enable Java Plugin in Standalone XUL applications?
I am using
Mac OS Snow Leopard(64 bit on Intel), XULRunner 1.9.1.7
|
2/7/2010 1:17:06 AM
|
0
|
Suhas <psu...@gmail.com>
|
Have been using a pop-up to explore XUL. Why has it stopped working?
Hello - I was using the pop-up I created following the very basic
"Getting started with extension development" available at ://
kb.mozillazine.org/
Getting_started_with_extension_development#Creating_stub_extension_files
to explore the workings of XUL. What I mean is I would substitute the
original pop-up you prop up by going the Firefox tools menu then down
to hello world with my own XUL I wanted to learn. I wanted to learn
XUL layout and was exploring it in this way. This was working fine
until it stopped working for some reason I screwed up the development
profile I was using to d
|
2/3/2010 11:07:59 AM
|
0
|
marcmiller <marcmill...@msn.com>
|
File Open Dialog Target
I'm using nsIFilePicker to allow the user to select a file like this:
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fileChooser =
Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
fileChooser.init(window, "Select a file...",nsIFilePicker.modeOpen);
var fileBox = fileChooser.show();
Is there any way to tell nsIFilePicker what specific directory to open
up in? My Googling hasn't turned up anything.
|
1/31/2010 5:25:22 PM
|
0
|
"J. Paul Richardson" <p...@reverendlinux.com>
|
xulrunner app preferences
In a xulrunner app, it appears that my preferences are being saved. Here is
the code that executes when the users indicates that they want to quit the
app:
var prefService =
Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
prefService.savePrefFile(null);
var testVal = Glider.mPrefService.getBoolPref("test");
alert("value of testVal before quit = " + testVal);
Glider.quit(true);
quit : function(aForceQuit) {
var appStartup =
Components.classes['@mozilla.org/too
|
1/27/2010 10:15:22 PM
|
0
|
"Susan Crayne" <susancra...@yahoo.com>
|
treecol vs treecell width issue
With columns like Tax Code or Currency which are 2 or 3 chars wide I
have to set the width of the treecol much larger than necessary to
show the header ( f.e. TC or CUR ) while the treecells values ( f.e.
01 or EUR, USD ) are shown correctly. The treecol header seems to have
a "fixed" space to its the right ( maybe to hold sort arrows ).
Any suggestion how to solve it?
I've tried with crop and alignment but without success.
best regards,
LF
|
1/24/2010 9:28:11 PM
|
0
|
LF <lorenzo.fior...@gmail.com>
|
Editor tag, selection?
Hi,
I want to take text selected from my editor, but editor tag which I'm
using doesn't have any kind of attribute to take selected text. So
I've tried to attach a button to my window, and each way I click on
it, it calls window.getSelection(), but it seems doesn't return
anything.
It could be a focus problem? Because my focus passes from editor to
button when I invoke window.getSelection() peraphs this DOM method is
referred to button and window ignoring my editor?
Any Idea?
|
1/24/2010 5:35:01 PM
|
0
|
ShInKurO <shink...@tin.it>
|
Duplicate appearance of tab-close and tab-new buttons
Hi guys,
In efforts to make a nice preferences UI for my firefox extension i'm
endeavoring to duplicate the appearance of the tabs-newtab-button and
tab-close-button of the tabbrowser.
However simply defining a toolbarbutton (as in tabbrowser.xml) with the
appropriate class does not seem to be enough. I also can't seem to find
any references to the (platform dependent) icon resource inside the
chrome.
Do I have to fully implement the binding to inherit the full appearance
and how would I go about incorporating this into my xul; or am I
missing something else?
Regards,
|
1/24/2010 11:59:31 AM
|
0
|
WakA <p.c.spruijtenb...@_riiimove_student.utwente.nl>
|
Print the sidebar conent
All right, this question seems so simple but I could not figure out
how to do it. I would like to print the content of a sidebar. If I
just put a buttun with print() into the sidebar I get a alert popup
"we are unable to print ....". But if I do a print with the sidebar
contentWindow and the nsIWebBrowserPrint I only get the browser page
but not the sidebar content. Ciuld somebody give some light how should
work?
|
1/23/2010 12:57:48 PM
|
0
|
hle <hle....@googlemail.com>
|
addEventListener on browser object
Does anyone have an idea why doesn't this piece of code work?
I'm trying to add an event listener to the browser object so that when
the page inside the browser is reloaded via loadURI the event is
triggered yet the function ares is never called...
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/
gatekeeper/there.is.only.xul">
<browser id="1" src='http://google.com/' width="500" height="200"
onload="alert('asd')" />
<script type="text/javascript">
function browserLoad() {
t
|
1/21/2010 11:56:29 PM
|
0
|
"yavor...@mail.bg" <gerund...@gmail.com>
|
application auto-update
I'm having trouble getting the my xulrunner app to update itself from
a server.
I have followed the steps from here:https://developer.mozilla.org/en/
XULRunner/Application_Update
I also recently followed the steps from this post:
http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/239a206ec8fd31d9
At this point I have used Fiddler2 to verify that my application is
making a request for the update xml file, and is getting the
appropriate one. However, no matter how I tweak the update.xml (small
changes to version number, switch type between major/minor, modify
|
1/19/2010 7:40:35 PM
|
0
|
sethwfoss <thelizardreb...@live.com>
|
drawImage throws exception NS_ERROR_NOT_AVAILABLE
Hi there,
I have a problem for a couple of months now, that I by-passed before
but now I need a real fix :
I think this issue is quite known, but I found no real patch or fix
for it :
I want to draw an image in a html canvas, so I did like explained
here : https://developer.mozilla.org/en/Canvas_tutorial/Using_images
And as stated on the page : "When this script gets executed, the image
starts loading. If loading isn't finished when a drawImage statement
gets executed, the script halts until the image is finished loading."
But the part "the script halts until the image is fin
|
1/19/2010 11:43:43 AM
|
4
|
KurDtE <anthony.bu...@gmail.com>
|
XUL editor "class"?
Hi all,
I'm going to write a stand alone text editor XUL based, When I was
searching a good "class" editor I've found Diavolo:
http://www.disruptive-innovations.com/zoo/diavolo/diavolo.html
My problem is with XULRunner 1.9.1.3 on OSX I'm not able to launch
diavolotest, I've this error:
2010-01-18 18:36:09.233 xulrunner-bin[3957:903] Mozilla has caught an
Obj-C exception [NSInvalidArgumentException: *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value (key: ApplicationId)]
and if I try to launch it opening it with firefox 3.5.7 it tells me
DiavoloTest is a not
|
1/19/2010 9:32:05 AM
|
0
|
ShInKurO <shink...@tin.it>
|
nsIHelperAppLauncher.saveToDisk error
Hello,
in an xul application, I use an iframe to serve HTML content.
In this html, I have a link to download a file.
When clicking this link, the popup for choosing whether opening or
saving the file appears, and if I select "save files" and then click OK
I have this error :
Erreur : [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIHelperAppLauncher.saveToDisk]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
file:///home/christian/xulrunner-1.9.0.15/components/nsHelperAppDlg.js
:: anonymous :: line 449" data: no]
Fich
|
1/18/2010 4:56:31 PM
|
8
|
Pernot Christian <christ...@pingroom.net>
|
Re:1. Menupopup as dialog? (hle)
On Mon, Jan 18, 2010 at 4:00 AM, <dev-tech-xul-request@lists.mozilla.org>wrote:
> Send dev-tech-xul mailing list submissions to
> dev-tech-xul@lists.mozilla.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.mozilla.org/listinfo/dev-tech-xul
> or, via email, send a message with subject or body 'help' to
> dev-tech-xul-request@lists.mozilla.org
>
> You can reach the person managing the list at
> dev-tech-xul-owner@lists.mozilla.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Content
|
1/18/2010 1:36:57 AM
|
1
|
dongdong deng <1983...@gmail.com>
|
Menupopup as dialog?
Hi,
I'm just wondering if it is possible to have a menupopup with dialog
character. Within a function there should be a openPopup call to
receive a value from the selected menuitem of the popup. Is this
possible? I need this to pass the value to a variable.
Regards
hle
|
1/17/2010 7:06:03 PM
|
0
|
hle <hle....@googlemail.com>
|
XULRunner SDK for Mac OS X Snow Leopard 64 bit (x86_64)?
The download site only provides 32 bit prebuilt versions of the
XULRunner SDK. Is there no 64 bit version available somewhere, or
coming soon?
Grts,
Francis
|
1/15/2010 9:59:39 PM
|
0
|
Francis <francis.ramme...@gmail.com>
|
Problem with browser contentDocument in xulrunner
In a xulrunner application, I have a hidden browser defined like this:
<window id="main-window">
<!-- ###### PANEL OVERLAY ###### -->
<popupset id="glider-panel-popupset" />
<broadcasterset>
<broadcaster id="glider-panel-display" />
<broadcaster id="glider-date-display-yes" disabled="true" />
<broadcaster id="glider-date-display-no" disabled="true" />
</broadcasterset>
<browser id="glider-hidden-browser" collapsed="true" />
</window>
I am trying to load some HTML code into the browser, like this:
var browser = document.getElementById("glider-hid
|
1/15/2010 4:31:58 PM
|
0
|
"Susan Crayne" <susancra...@yahoo.com>
|
Javascript-XUL developer
Hi developers,
we are searching for a Javascript-XUL developer for working in a project
that is aimed in the development of a firefox plugin which allows to the
user creating notes and highlighting text on webpages. The interface and
some functionalities will be similar to Zotero http://www.zotero.org/
If you are interested and you have availability for the next 2 months
please response me at this email address and you will have more
information about the project as well as we can speak about the
remuneration for this work more concretely.
Thanks in advance,
Regards
--
|
1/14/2010 12:12:11 PM
|
0
|
Miguel Angel Tinte =?ISO-8859-1?Q?Garc=EDa?= <mati...@libresoft.es>
|
Tree with XML template inside prefpane - bug?
I'd been fighting with building a tree from an XML template and
external datasource inside a prefpane. I found I could build lists
etc. from the same XML source, but not the tree that I wanted. I was
about to give up and use a list instead, when on a "one last try", I
removed the flags="dont-build-content" attribute from the tree element
et voila! my tree worked!
I guess this is a bug, unless someone can enlighten me, in which case
I'll report it.
|
1/10/2010 3:19:44 PM
|
6
|
Chris <chris.jo...@syclone.org.uk>
|
How to get the list of installed plugins ?
Hi,
Is there a way to get the list of installed plugin ?
fo example, to check that flash is installed before running xulrunner ?
Benoit
|
1/9/2010 12:59:55 PM
|
4
|
Benoit DECHERF <bdech...@gmail.com>
|
Event handlers on children of toolbarbutton
In an existing application that I'm modifying, there is a toolbarbutton that
has a click handler on it. I'd like to change that so that instead of the
handler on the toolbarbutton, there is a handler on the label element that
is the toolbarbutton element's first child. I've tried to do this, and the
label element does not receive the click event. I'd like to know if this is
possible. If it isn't, I can change the xul so that there is, instead of a
toolbarbutton, a box with explicit label and image children. Thanks.
|
1/8/2010 12:38:12 AM
|
0
|
"Susan Crayne" <susancra...@yahoo.com>
|
get value from inputbox in the htmlpage with xul addon
Hi,
I have this simple html page with a single inputbox
When I call my FFaddon, I need to get the id of that inputbox.
I know thats its document.getElementById('id').value to get the value
from the inputbox but it doesn't from inside XUL. Its always null.
What do I need to interact with the html page on which I call the
addon?
|
1/7/2010 6:59:24 PM
|
0
|
Alexander De Mulder <demulder....@gmail.com>
|
Is there a way to save picture of image element to another place.
Hi,
I have an image element in xul window. And I src attribute of the image
element to a chrome url, and now I wanna save the picture of the image show=
n
to another file.
Any suggestions?
Thanks in advance.
--=20
=B5=CB=B6=AC=B6=AC
=B5=E7=BB=B0=A3=BA51570010-6495
|
1/7/2010 5:08:55 AM
|
0
|
dongdong deng <1983...@gmail.com>
|
xulrunner and java
Hi,
I'd like to create a framework to use xulrunner as the view of a java
application.
The idea of the framework is :
- install xulrunner if necessary (So that the application based on the
framework will run on any plateform, without the need of a pre installed
xulrunner)
- embed a web server like jetty (To be abble to comunicate from a xul
application to a java server)
- create some basic js methods to comunicate to the server
- create some basic class to start the jetty server and initialise the
services class (I think that the server will be based on jersey).
W
|
1/6/2010 3:22:13 PM
|
0
|
Benoit DECHERF <bdech...@gmail.com>
|
Dynamic nodes insertion & rendering issue (scrollbar)
Hi all,
I'm inserting dynamically elements into my xul document with JQuery,
and it's working quite well.
Quite well because if the content is bigger than the container height,
the renderer don't show a scrollbar.
1. I load an iframe with an empty (almost) xul document
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<xul:window id="xulWindow"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/
there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
orient="vertical"
xmlns:html='h
|
1/6/2010 1:34:45 PM
|
1
|
Frycake <cedricalfo...@gmail.com>
|
Tree startEditing by pressing a key...
Hi, i am trying to bring a treecell into edit mode by pressing a key
on the keyboard.
with mouse doubleclick it works, but not with a key.
is there a default key to bring a cell to edit mode?
if not i was trying this, but it does not work...
Tree keypress event handler:
if (event.keyCode == 13) // pressing retourn
{
// start editing mode, current row index, and myColumn
event.target.startEditing(event.target.currentIndex, myColumn);
}
please help.
thanks a lot.
|
1/2/2010 9:26:38 PM
|
1
|
knallkopf66 <knallkop...@hotmail.com>
|
XPCOM problem: windows 2000
Hello,
I am new to XUL application development, and by reading a few tutorials I
now have a working application using
|
1/1/2010 3:03:25 PM
|
0
|
GIRAULT Florian <florian.gira...@gmail.com>
|
Ipc or message back to js/xpcom from an external process
Hi Guys,
Is there a way to get the ipc or a simple message from external
process to the js/xpcom app? Rightnow, I am relying on file io - which
is inefficeint.
Searching around, I found some pointers from 2007 - did anything
change or added for the inter process communication - either ipc/
socket?
I have something like below.
...
file.initWithPath('\\path\simple.exe');
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance
(Components.interfaces.nsIProcess);
process.init(file);
I want to able to read the message from simple
|
12/30/2009 4:49:34 AM
|
0
|
Vasu <vas...@gmail.com>
|
Saving preferences in a editable tree
I am trying to implement an editable tree in which I am trying save
the preference string every time the user makes a change to the tree
using the 'onsynctopreference' event handler.
However, when I remove an element from the tree, this event handler
doesn't get called and I am manually saving the preference string.
Also, for adding an entry, I am using the startEditing method. Here,
the event handler does get called but since the label of the treecell
is only set once stopEditing is called, the preference string does not
get updated with the new value.
This has got me totally con
|
12/29/2009 9:26:10 AM
|
0
|
Ankit Ahuja <ahuja.an...@gmail.com>
|
auto-refreshing <tree>
Hi all,
I'm new to the mozilla platform and am working on my first XUL app. I
need to periodically refresh a tree backed by a custom nsITreeView.
I've tried calling the invalidate* methods on the tree's box object
from a timer which fires every 5 seconds. However, the tree is not
redrawn. It is redrawn only when there are additional events like a
mouse hovering on the tree etc.
How do I force an update event on the tree?
Thanks in advance,
--Krishna
|
12/26/2009 9:02:18 AM
|
6
|
Krishna <v.krishnaku...@gmail.com>
|
Determining Which Tab is Selected in XUL Dialog
I've been experimenting with tabs in a XUL dialog. I have two tabs
(let's call them A & B) and want to perform an action based on which tab
is active (ie - which one I'm looking at). How do I determine which tab
is the active one?
I've tried working with selectedIndex, selectedItem and selectedTab but
can't seem to get anything beyond "undefined."
|
12/19/2009 11:47:05 PM
|
3
|
J Paul Richardson <p...@reverendlinux.com>
|
Problem with javascript-code after unload thunderbird
hi
i'm using the function
<script >
window.addEventListener("unload", autoExportOnClose, false);
</script>
in my xul overlay for thunderbird to start my automatic export from
lightning.
but it doesn't work with failure...
Fehler: [Exception... "'[JavaScript Error: "autoExportPrefs is not
defined" {file: "chrome://autoexport/content/autoExport.js" line:
116}]' when calling method:
[calIOperationListener::onOperationComplete]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame ::
file:///D:/11%20AppData/Thunderbird/Steffen/extension
|
12/18/2009 8:52:20 AM
|
0
|
Steff81 <steffen.roet...@googlemail.com>
|
Scrollbar firing/clicking events
Hi Guys,
How can I get a firing/clicking event in XUL scrollbar. I have a box
where, when I refresh the content using DOM creation and deletion, I
want to have user get the top of the page for every DOM refresh.
I tried many tricks with the js like window.scrollTo, etc.. no luck so
far. Appreciate if you have solution/trick for above issue.
thanks
|
12/16/2009 9:44:22 AM
|
2
|
Vasu <vas...@gmail.com>
|
href in XUL label - linking borked in TB3?
Hi
in my Thunderbird extension I am using href within a label to link to
web pages. Works in TB2, Postbox, SeaMonkey 2.0 but it stopped working
with the most recent version of TB3 (3.0.1). Is there any CSS (pseudo-)
style I need to add to the labels to make the links work again?
Also, is it possible to use the title attribute in order to generate
tooltip messages over the labels?
Example:
<description class="quickhelp-desc">&qf.description.bugs;</description>
<label href="http://quickfolders.mozdev.org/bugs.html"
class="text-link"
id="L2" title="quickfolders.mozdev.org/bugs.
|
12/16/2009 12:33:11 AM
|
12
|
Axel Grude <axel.gr...@gmaiI.com>
|
xul updater for mac
I've recently added xul's auto update functionality to an xul
application that runs on linux, mac and win. All works fine in linux
and win but on mac the update fails.
The mac version will download, verify the partial mar and ask the user
to restart the app to apply the patch. When the user clicks restart
the app shuts down but does not restart. if the user then starts the
app they get a dialog box that says the patch failed, click here to
download and install the complete patch. The app successfully
downloads and verifies the complete mar but once again fails to apply
it after the
|
12/14/2009 8:50:17 PM
|
2
|
pat <patio.le...@gmail.com>
|
input and files
I'm trying to get the following markup to work:
<input type="file" id="input" onchange="handleFiles(this.files)" />
as documented on the MDC website. I'm using xulrunner with gecko
1.9.2b4
However, if I use xulrunner (or firefox 3.6b4 for that matter ) the
input box does not appear. Is it actually working yet - or is the
documentation ahead of the code?
thanks
Tony
|
12/14/2009 2:16:25 PM
|
0
|
Tony Cox <tonyco...@googlemail.com>
|
treecell editable events ??
hi,
does anybody know which events i can handle when a treecell is double
clicked to edit and
the edit mode is ended? i would like to do a validation of the newly
inserted text.
thanks, k.
|
12/7/2009 9:51:00 PM
|
4
|
knallkopf66 <knallkop...@hotmail.com>
|
XUL FreePascal help
Hello,
atm we are working on XUL Language Bindings for FreePascal.
But we have a Problem with initEmbedding on Linux.
The Project Page:
http://wiki.lazarus.freepascal.org/GeckoPort
The Problem appears here in the function XRE_InitEmbedding:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/geckoport/nsXRE.pas
This function call results in an "External SIGFPE"
Can someone help us out? Or make a suggestion how to fix this or locate
the problem?
It seems that the problem appears on linux systems only.
kind regards
alex
|
12/7/2009 3:28:21 PM
|
0
|
Alexander Kaupp <tan...@tanila.org>
|
loadURI stops working in xulrunner
I am converting an add-on to a xulrunner app. The xulrunner version is
1.9.1.4. The browser element is defined like this:
<browser id="glider-hidden-browser" collapsed="true" />
This is the code:
var browser = document.getElementById("glider-hidden-browser");
var url = "hello";
browser.loadURI(url);
The last line produces this error message:
ERROR: onDrop: [Exception... "Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIContainerBoxObject.docShell]" nsresult:
"0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame ::
chrome://global/content
|
12/4/2009 10:20:31 PM
|
1
|
"Susan Crayne" <susancra...@yahoo.com>
|
Fill Xul-Browser with HTMLObjects
Hi everyone,
I have some problems with the Xul <browser>, which is placed inside a
<window>. I have to render web pages from HTMLObjects. At the moment
the HTMLObject is put directly in the innerHTML of the <browser> (not
sure this is the right way...). Also the browser's src-attribute is
set to the displayed URL.
The <browser> obviously loads the URL from the src-attribute, whicht
should never happen. I could leave the src empty but then I have to
fix the relative links. (It's nice to avoid fixing the links... )
Is there an easy way to display and rendered HTML-code dynamicall
|
12/3/2009 5:40:02 PM
|
1
|
Sebastian Sebald <sebastian.seb...@googlemail.com>
|
how to open command line output
Hi,
From an Addon I would like to run a comman line process to create a
xml file. The xml file should be loaded into the FF browser tab after
the command line process has finished. Could somebody help me how to
do this. The problem is the command line process may take one or two
seconds to create the xml file.
The command line would look like this: application.jar input.source
> output.xml
How do I make sure the load process of output.xml is triggered after
the comman line has finished to create the xml file?
Regards, H
|
11/30/2009 6:36:58 PM
|
2
|
Holge r <hg.o...@googlemail.com>
|
Resizable Listbox columns of multi-col-listbox?
Hi guys,
i am new to XUL, so this is probably just a "newbie"-question.
I have an xul-form, containing a multi-column-listbox. Each single
column of the listbox must be resizable by the user. I have already
searched the XUL-Reference, but could not find a solution / info how
to make cols resizable.
The source of the form is:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/
there.is.only.xul">
<tabbox flex="1">
|
11/30/2009 12:11:13 PM
|
1
|
"A.Eternach" <andreas.etern...@googlemail.com>
|
catch an event in the overlay.xul/js
Hi, i have done an toolbar for mozilla...overlay.xul (and ovrelay.js);
I would like to run a function "carica()" at every page that is loaded
in the browser...
i have try with
set collapsed(aValue)
{
if (aValue && this.mProgressBar.value != 100)
{
this.mProgressBar.value = 100;
}
carica();
},
but this function is loaded two times at every refresh and one time at
every tab opened....
|
11/27/2009 6:47:04 PM
|
0
|
io <armando.cazze...@gmail.com>
|
my own url protocol in link
I want in my xul program make links like <a
href="res://some_resource#1231">Show me something local</a> and to make
handler for this (javascript function), is it possible?
|
11/26/2009 10:02:29 AM
|
1
|
"Dmitry" <d...@domokom.ru>
|
xul element height
I know I should know this but do you use computedstyle to determine the
composed height of a template generated table ?
<window>
<box id="container" >
<template code/>
</box>
</window>
if I try to use ele.getcomputedstyle.getpropertyvalue('height') then all I
get back is 'Auto'
|
11/24/2009 12:44:43 PM
|
2
|
"rvj" <...@rolemodels.net>
|
XUL and FreePascal
Hello,
I am interested in creating an widgetset for the FPC
(FreePascal)/Lazarus-Project to support XUL/XPCOM.
My question is if this is possible in general. I read that it is
possible for c++ binaries.
kind regards from germany
alex
|
11/23/2009 1:51:24 PM
|
3
|
Alexander Kaupp <tan...@tanila.org>
|
privatebrowsing in xulrunner
Hi,
as I understand, XULRunner isn't build with the privatebrowsing-
interfaces. Currently in my application there always appears an
warning + error message in the error console, because a function in
globalOverlay.js does try to access the nsIPrivateBrowsingService.
What about creating ifdefs for disabling/enabling functions which try
to access privatebrowsing interfaces?
To reproduce:
* Use XULRunner 1.9.2 or newer
* Open Error Console via window.open("chrome://global/content/
console.xul", "_blank",
"chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar");
* Close
|
11/20/2009 9:26:48 AM
|
1
|
Bullja <brunomar...@googlemail.com>
|
remove drag insertion markers or highlighting
Hi,
https://developer.mozilla.org/En/DragDrop/Drag_Operations#dragend
says
-moz-drag-over pseudoclass will be removed automatically when drag
exit.
But when a new dialog opened,. a drag process will be interrupted and
the drag image and highlighting will not be removed.
So I have to remove the insertion markers or highlighting manually.
Any ideas?
Thanks in advance.
|
11/20/2009 2:24:31 AM
|
0
|
DDD <1983...@gmail.com>
|
Adding drag and drop behaviour on the fly.
Hello.
I'm adding toolbarbuttons on palette dinamically and want them to
support drag and drop. All works just fine when I use static buttons
with draggesture attribute. But I did not succeed in adding it
dinamically after document.createElement("toolbarbutton"); I read
previous posts regarding adding event on parent container object and
then determine where user clicked on but this doesn't look as best
approach. So is there any way to add this draggesture handler
dynamically?
Thanks, Artem.
|
11/19/2009 1:34:36 AM
|
1
|
Artemm <chupak...@gmail.com>
|
Using XUL in HTML cross-browser with Ample SDK
Hi fellows,
I am writing here because I thought you might be interested in hearing
about new client-side JavaScript GUI Framework "Ample SDK" (recently
gone Open-Source) that strives to among other standard technologies
bring XUL cross-browser to the HTML applications world.
The library is written entirely in JavaScript and consists of the
following:
- Runtime (Core library), that re-implements DOM (Core, Events,
Selectors API) Level 2/3 cross-browser (yes, we had to re-implement
DOM because of the "ugly duckling" Internet Explorer and the necessity
of shadow tree), adds missing
|
11/17/2009 5:21:22 PM
|
1
|
Sergey Ilinsky <ilin...@gmail.com>
|
Changing broadcaster group="sidebar"
Hi!
I have an overlay where my app is declared as a sidebar but I would
like to change it's appearance so it would look like the zotero
plugin, for example. This is my code now:
<broadcasterset id="mainBroadcasterSet">
<broadcaster id="app_id"
label="app_name"
type="checkbox"
group="sidebar"
sidebarurl="chrome://app/content/app.xul"
siderbarTitle="title_app"
oncommand="toggleSidebar('app_id');"/>
</broadcasterset>
Does anybody knows another value for group so I can change t
|
11/17/2009 10:55:58 AM
|
0
|
matinte <miguel.ti...@gmail.com>
|
Overlaying menu items in a XUL textbox's context menu
Hello All,
I have a textbox, and I'd like to enhance its context menu. The best
I've been able to do is to assign a menupopup's id to the textbox's
"context" attribute, which overrides the context menu rather than
adding to it.
In the browser, I'm able to overlay new context menu items by matching
the "contentAreaContextMenu" id. Is there an analogous ID for XUL
context menus?
I've looked at
http://weblogs.mozillazine.org/weirdal/archives/009103.html
Not only is that 4 years old, but I was not able to follow it.
Has anyone accomplished this?
|
11/16/2009 7:48:09 AM
|
3
|
steve <steven.h.gardi...@gmail.com>
|
Problem printing XUL in XULrunner
I need to print a window (or iframe) in a XULrunner standalone app. I
have tried using:
document.getElementById("main-iframe").contentWindow.print();
where the "main-frame" element is an iframe. It only works if the
source of the iframe is an HTML document (either on the web, or on the
local computer). If the source of the iframe is a XUL document, it
returns the following error:
We are unable to print or print preview this page
Is this by design? Are XUL windows un-printable? I can't find any
specific reference to this behaviour, either in Google or on
deve
|
11/15/2009 2:39:36 PM
|
1
|
freshclick <s...@open-t.co.uk>
|
Style the title of a toolbarbutton?
I have
<toolbarbutton label="context" id="cbContextList"
locationProvider="Chromebug.contextListLocator;"
title="Context:"
tooltiptext="currently selected context"
labeltooltip="fbTooltip" labelcontextmenu="fbContextMenu"/>
and I want to style just the "title", not the rest of the content. If
possible, how?
jjb
|
11/15/2009 5:16:43 AM
|
8
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
Accessing the contents of a browser tag
Thanks to everyone in advance -
I have a xul window that I am loading via firefox for testing that has
a browser tag inside of it. When I do something like:
alert(document.getElementById
("mybrowser").contentDocument.getElementsByTagName("title")[0]);
I get a security permission error "Error: uncaught exception:
Permission denied to create wrapper for object of class UnnamedClass"
I have firebug and proceeded to try and track down via the dom dump
another access point to the document loaded inside of the browser tag,
but was unsuccessful - any suggestions?
Thanks,
Sam
|
11/14/2009 1:49:15 AM
|
2
|
Sam Ingrassia <sam.ingras...@gmail.com>
|
XML template and default namespace in XML file - how?
I have a listbox that I populate using an XML template. The specific
XML file can be chosen at runtime by the user, and the datasource is
set from script.
This works just fine as long as the XML file has no default namespace.
However, when it does, the template does not populate the list.
I've not been able to find a solution to this, but it seems so obvious
that someone else must have run into it. I did see a similar question
posted but that was over 12 months back, and there was no reply.
Anyone got any ideas?
|
11/13/2009 5:35:10 PM
|
1
|
Chris <chris.jo...@syclone.org.uk>
|
getcharPref and german umlaut
Hi,
i have some problems.
i'm writing a extension and therefore i need a path.
when i save a path with an "=F6" (e.g. d:\test\t=F6st") over setCharPref,
i can see the correct path in the pref.js.
but when i use getCharPref and put it into an alert, i see
"D:\test\t=C3=B6st"
where is the problem?
thanks in advance
steff
|
11/11/2009 2:41:04 PM
|
6
|
Steff81 <steffen.roet...@googlemail.com>
|
-moz-box-shadow in xulrunner?
I see that Gecko 1.9.1 (and FF 3.5) now supports -moz-box-shadow:
https://developer.mozilla.org/En/CSS/-moz-box-shadow
It doesn't seem to be part of xulrunner yet - is there a timeline for
when it will be included?
Thanks!
- Mike
|
11/10/2009 8:03:22 PM
|
2
|
Mike Desjardins <desjardinsm...@gmail.com>
|
Prevent Firefox from using dropped data as a URL
I'm running Firefox 3.5.4 on Windows Vista. We have developed an addon the
UI of which sits inside a popup. I'm implementing a function that will
allow users to drag the UI window to any place on the browser, using the XUL
drag and drop functionality.
The problem is that the drag and dragover functions work correctly, but
the browser takes over the drop and puts my data into the URL bar. I
actually don't need to transfer any data -- I just need to get the mouse
coordinates of the place where the dragged window is dropped. But if I
don't transfer any data, the drag doesn't
|
11/9/2009 9:09:53 PM
|
4
|
"Susan Crayne" <susancra...@yahoo.com>
|
progressmeter step size
Hello
Am I doing something wrong or are there some steps defined on
progressmeter which prevent it from progressing pixel by pixel?
|
11/9/2009 3:57:04 PM
|
9
|
=?ISO-8859-1?Q?Jaroslav_Z=E1ruba?= <jaroslav.zar...@gmail.com>
|
Confused with editor.textContent
Hi,
My code is like this:
var myButton= this.getElementById("myButton");
var myEditor = this.editor.getEditor
(this.editor.contentWindow).rootElement;
myEditor.textContent = myButton.label;
But now,the texts in the editor cannot be deleted any more except that
I input some letters in the editor.
I am confused with it~ Do you have some ideas about it?
How should I make the backspace available at that time~
Thank you~
|
11/9/2009 5:57:18 AM
|
1
|
hanyuxinting <hanyuxint...@gmail.com>
|
Localization problems
Hi,
I guess I'm not the first one to ask a question about localization in
xul, but even after googling and hard reading of the xul's tutorials,
I can't make my application's localization working ...
Even when I try with a very simple app, it doesn't work.I always get
this message "XML Parsing Error: undefined entity", so I guess that
the application cannot locate my DTD file. Could anyone help me and
tell me what I am doing wrong ?
Here is the file structure :
findfile\
|---chrome
| |--- content
| | |--- main.xul
| |--- locale
| | |--- main.dtd
|
11/6/2009 9:10:06 AM
|
1
|
KurDtE <anthony.bu...@gmail.com>
|
xul editor not showing inserted images
Hi,
I am developing a Thunderbird addon. As it needed a rich text area, I
- created an XUL editor element in a window
- set its editortype to "html" in the window.onload() function
- set its designMode to "on" in the window.onload() function
I also created a toolbar of buttons like bold, italic, underline,
strikethrough, indent, outdent, left-justify, right-justify, link,
image etc..
But when the image-button in the toolbar is clicked and an image is
selected, the image is not loaded in the editor, although the place
holder and the alternate text appear in it.
1. Initiall
|
11/5/2009 5:43:38 PM
|
0
|
Sathi <sathish.v....@gmail.com>
|
Prevent unload event of sidebar by print preview
Hi,
My Sidebar has an unload event used to clean global variables and also
cleaning up the sidebar. If I use print preview the unload event is
triggered and after closing the preview the sidebar is empty. The
unload event is defined by the attribute unload in the root window
element of the sidebar. Is this a bug?
Greeting
|
11/2/2009 10:51:05 PM
|
0
|
Holge r <hg.o...@googlemail.com>
|
Updating a JavaScript module (jsm)
Hi,
I'm not sure whether my Question belongs to the JavaScript engine or to
XulRunner.
When updating a JavaScript module (jsm file) of a XulRunner application
(not of XulRunner it self) what must be done to make it work? Is this
similar to components, where I have to touch a magic .autoreg file, or
is there an other mechanism for JavaScript modules?
Updating the file and just restarting the application is not enough. The
application still sees the old implementation of the JavaScript module.
So the cache seems to live longer than XulRunner is running. Touching
the .autor
|
11/1/2009 7:01:37 PM
|
0
|
=?UTF-8?B?R2VvcmcgTWFhw58=?= <ge...@bioshop.de>
|
nsIFileOutputStream with a relative path
Hi,
i`m writing a addon for lightning.
a addon for automatic exports.
many user asked me for a export to a relative path.
currently i am using following code (from the original lightning code)
< var outputStream = Components.classes["@mozilla.org/network/file-
output-stream;1"].createInstance
(Components.interfaces.nsIFileOutputStream);
< try{
< outputStream.init(pathForExport, MODE_WRONLY | MODE_CREATE |
MODE_TRUNCATE, 0664, 0);
< exporter.exportToStream(outputStream, calendarEventArray.length,
calendarEventArray, null);
< outputStream.close();
but there is no chance to
|
11/1/2009 6:11:21 PM
|
4
|
Steff81 <steffen.roet...@googlemail.com>
|
Overlays for Firefox and Seamonkey
Firebug overlays Firefox to add its functionality. SeaMonkey would like
to use Firebug. The Firefox and SeaMonkey XUL structure is similar but
different. For example:
<!-- Firefox View menu -->
<menupopup id="menu_viewPopup">
...
<!-- SeaMonkey View menu -->
<menupopup id="menu_View_Popup">
...
My question is: how to add SeaMonkey XUL support. Bug 525638 proposes
to simply have both overlay elements in the .xul file, I suppose because
the non-matching one in either case will just fail to match and be
ignored. Or fail to match an
|
10/31/2009 4:59:08 PM
|
4
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
determining favicon address?
It there a JS call that can return the address icon of the current
document?
|
10/31/2009 9:19:58 AM
|
0
|
"rvj" <...@rolemodels.net>
|
Opening XUL files zipped in a jar file
Hello everybody,
I'm developing a web application that regulates the access to some data
stored as jar files. Each jar file contains two data file and a xul file,
which use the data within the same jar file.
In Firefox 2.x everything works fine when addressing the xul file with the
jar protocol, and the all directory structure (e.g.
jar:http//localhost/directory/file.jar!dir1/dir2/xulFile.xul ).
Specifically, when addressing a xul file in that way, I automatically get
the execution of the xul file.
Differently, upgrading to Firefox 3.5, when addressing the xul file in the
ident
|
10/30/2009 4:14:25 PM
|
2
|
Daniele Development-ML <daniele....@googlemail.com>
|
Dialog width and descriptions
Hi!
I have a XUL dialog in which I need several longer texts which I have
put in <description> to make it wrap. At the bottom of this is a
demonstration which I use for test purposes.
The problem: in a dialog window the description text will never wrap.
In other words: the very long text in the second description will be
put into a single line and the whole dialog window will be extremely
wide.
What I want: the width of the text in the description should not
determine the width of the dialog. Instead the rest of the dialog
elements should determine the width of the description,
|
10/29/2009 8:27:00 PM
|
1
|
Gerald Vogt <v...@spamcop.net>
|
My XULRunner tutorial
Hello all,
I've been working on a [novice] XULRunner tutorial in my spare time.
Because I am a super-noob with XUL and XULRunner, don't expect this to
be mind-blowing or perfect. I am currently looking for ideas,
suggestions, and criticisms for this little pet project.
I started writing this to teach myself the basics of XULRunner and get
into the groove of development with the platform. I'm hoping it could
also be useful for other newcomers!
Currently, two parts are written. I am planning for a third part at the
moment (as soon as I can actually finish doing what I wil
|
10/27/2009 7:58:35 PM
|
3
|
Jason Oster <paras...@kodewerx.org>
|
Unable to use LDAP XPCOMM
I am trying to add LDAP XPCOM directly to my XUL application using the
instructions
I found here:
https://developer.mozilla.org/en/XULRunner/LDAP_XPCOM
Everything seems to build successfully, but when I run my application and
try to
create LDAP objects I get the following error:
TypeError: Components.classes['@mozilla.org/network/ldap-server;1'] is
undefined
Here's the JS code that results in the error:
try {
var server =
Components.classes["@mozilla.org/network/ldap-server;1"].createInstance(Components.interfaces.nsILDAPServer)
} catch (e) {
|
10/27/2009 4:45:12 PM
|
0
|
"Greg Allen" <gregory.al...@sierraatlantic.com>
|
Catching window.open() calls in xul/js
Hello,
I'm writing a XUL application designed to run full screen, and
therefore need to catch any javascript window.open() calls to open
them in the current window. I've tried to set the window
browserDOMWindow to a nsIBrowserDOMWindow object and listening for
openURI, but the openURI method is not being called. Is this the
right path to be going down? Are there any tricks to getting the
nsIBrowserDOMWindow object set up? Is there an easier way to capture
open calls from javascript? Thanks in advance,
-Brad
|
10/27/2009 1:55:43 PM
|
3
|
brad dyer <bsd...@gmail.com>
|