mozilla-xp.com | Post Question | Search | About | Groups | Contact | Register | Login



mozilla feedback firefox (6175)

mozilla feedback (2077)

mozilla feedback firefox prerelease (1989)

mozilla feedback companion ebay (1632)

mozilla feedback thunderbird (857)

mozilla support thunderbird (796)

mozilla support seamonkey (507)

mozilla dev tech crypto checkins (460)

mozilla support firefox (402)

mozilla support bugzilla (395)

mozilla dev extensions (358)

mozilla feedback thunderbird prerelease (334)

netscape public mozilla reviewers (272)

mozilla dev mdc feedback (270)

netscape public beta feedback (268)

netscape public mozilla crypto checkins (265)

mozilla dev apps thunderbird (251)

netscape public mozilla jobs (224)

mozilla dev tech plugins (194)

mozilla dev apps firefox (189)

mozilla dev tech xul (189)

mozilla dev apps calendar (187)

mozilla dev embedding (181)

netscape public mozilla embedding (177)

netscape public mozilla test (174)

netscape public dev xul (169)

mozilla dev planning (168)

mozilla support calendar (167)

mozilla dev tech js-engine rhino (164)

mozilla test (163)

netscape public mozilla jseng (160)

netscape public mozilla crash-data (159)

netscape public mozilla xpcom (159)

netscape public mozilla layout xslt (158)

mozilla dev platform (157)

mozilla dev platforms mobile (157)

mozilla marketing (155)

mozilla jobs (153)

mozilla dev builds (152)

mozilla dev tech xpcom (150)

netscape public mozilla webtools (149)

mozilla dev accessibility (147)

mozilla support webtools (147)

netscape public mozilla calendar (139)

netscape public mozilla gtk (136)

mozilla dev tech java (135)

mozilla community drumbeat (134)

netscape public mozilla xml (132)

mozilla dev tree-management (131)

mozilla dev apps bugzilla (130)

netscape public mozilla i18n (130)

netscape public mozilla prefs (129)

netscape public mozilla qa general (129)

mozilla dev amo (128)

netscape public mozilla rdf (126)

netscape public mozilla xpinstall (126)

netscape public mozilla xpfe (123)

netscape public mozilla plugins (122)

netscape public mozilla java (122)

netscape public mozilla general (120)

netscape public mozilla ui (119)

netscape public mozilla accessibility (118)

netscape public mozilla wishlist (117)

netscape public mozilla mac (116)

mozilla dev tech js-engine (116)

mozilla dev apps seamonkey (116)

netscape public mozilla mathml (112)

netscape public mozilla crypto (112)

netscape public mozilla beos (111)

netscape public mozilla jsdebugger (110)

netscape public mozilla license (109)

mozilla dev tech crypto (109)

netscape public mozilla qa browser (109)

mozilla wishlist (108)

mozilla dev tech xforms (106)

netscape public mozilla directory (106)

netscape public mozilla editor (106)

mozilla dev quality (106)

netscape public mozilla macosx (106)

mozilla dev apps js-debugger (105)

netscape public mozilla performance (103)

netscape public mozilla builds (100)

mozilla dev ports os2 (100)

netscape public mozilla qt (98)

netscape public mozilla mail-news (97)

mozilla announce (96)

netscape public mozilla documentation (94)

netscape public mozilla os2 (93)

netscape public mozilla nspr (93)

netscape public mozilla netlib (93)

netscape public mozilla style (92)

mozilla support planning (92)

netscape public mozilla patches (91)

mozilla dev l10n web (91)

mozilla dev tech nspr (89)

mozilla dev mdc (87)

mozilla dev tech network (87)

mozilla dev tech css (86)

mozilla dev l10n (85)

mozilla dev l10n cs (85)


mozilla.dev.tech.java Post New
Items(135) /2 Next >> Last >|
Subject Posted Replies From
how to know user have opend window for firefox?

hi all, how to know user have open a window? i want to active firstUse function when user open window first time ,but it's won't invoke firstUse function when user open the second window without close the first one window . it's my code : var popup = { count: 0, firstUse: function() { alert("running this function"); }, open: function() { this.count++; if (typeof(this.firstUse) == "function") { this.firstUse(); this.firstUse = null; // destroy method } alert("this is y

3/4/2010 1:29:33 PM 0 "george.tovrea" <george.tov...@gmail.com>



liveconnect mysql

can anyone give me a function like the one below that is capable to connect to a mysql database, and take SQl interogation and pass it to mysql server and after mysql server answer... return the result of interogation...(i think is not so hard to make this function, but i only know javascript, some PHP and some SQL...) the code below is for writing in a file (i finded on internet, and sorry for my bad english)... // Write text to a file. function writeFile(fileName, data) { netscape.security.PrivilegeManager.enablePrivilege("UniversalPropertyRead"); var userHome = java.la

3/3/2010 4:32:17 PM 0 fara fara <danut.san...@gmail.com>
window.onload event

Hi all, Can I using "window.onload " in firefox extension ? Cheers, George

3/3/2010 3:30:07 PM 0 "george.tovrea" <george.tov...@gmail.com>
java.lang.NullPointerException

Hi all , What's meant about the error msg "Error : uncaught exception: java.lang.NullPointerException" Any help will be appreciated ! Best regards, Galuschka

3/3/2010 6:17:20 AM 0 "galuschka" <galuschka.christ...@gmail.com>
XML filter is applied to non-XML value function import() {[native code]}

Hi all , I have a error : XML filter is applied to non-XML value function import() {[native code]} The error line is " Components.utils.import.('resource://jsModule/XPCOMUtils.js');" Anybody knows what's happening !! Cheers, Galuschka

3/3/2010 3:54:06 AM 0 "galuschka" <galuschka.christ...@gmail.com>
firefox working in background

Hi , I'm using window.addEventListener to listen when user open browser then load my jar . But I find when user close the browser , the firefox still working in background. Anybody knows what's wrong with my firefox extension ? Any tip ? Cheers, Galuschka

3/2/2010 7:00:41 AM 0 "galuschka" <galuschka.christ...@gmail.com>
using window.addEventListener load once

Hi all, I try to using load my jar once when user open firefox browser and end until user close the browser . So I'm using "window.addEventListener " to monitor the user action . but I find when I close browser ,thar jar still working in background. Have anybody knows what's happening ? or have someone meet the problem before ? Any tip ?? Galuschka

2/26/2010 8:08:53 AM 0 "galuschka" <galuschka.christ...@gmail.com>
add new function in javascript

Hello to every one! I want to call my java code through javascript and these code as follows : // We are in the global Firefox script scope, so only use our own unique global names; best to have at most one // global in the global namespace var java_demo = { LiveConnect : {}, onMenuItemCommand : function () { Components.utils['import']('resource://javaDemo/LiveConnectUtils.js', this.LiveConnect); var jars = ['URLSetPolicy.jar', 'Test.jar','ServerTest.jar']; var [loader,urls] = this.LiveConnect.initWithPrivs(java, 'javaDemo@geor

2/25/2010 1:18:55 PM 0 "george.tovrea" <george.tov...@gmail.com>
FW: send values to firefox extension

hi , can I send some value to local firefox extension from other pc ? any help will be appreciated !! cheers, George

2/24/2010 2:44:51 PM 0 "george.tovrea" <george.tov...@gmail.com>
Questions about capabilities

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 ab

2/7/2010 5:06:54 AM 0 Grant Robertson <bo...@bogus.com>
queryInterface exception

I want to get element position and width. I tried this codes but it throws an exception, my os is windows xp and xulrunner is 1.8.1.3 and swt is 3.448. Thank you. nsIDOMElement elem = (nsIDOMElement) node.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID); //it works. node is a nsIDOMNode nsIDOMNSHTMLElement domnshtmlElement = (nsIDOMNSHTMLElement)node.queryInterface(nsIDOMNSHTMLElement.NS_IDOMNSHTMLELEMENT_IID); //it throws an exception //nsIDOMNSHTMLElement domnshtmlElement = (nsIDOMNSHTMLElement)elem.queryInterface(nsIDOMNSHTMLElement.NS_IDOMNSHTMLELEMENT_IID); //also fail to wo

1/27/2010 3:54:16 AM 0 Li Li <fancye...@gmail.com>
how to accessing java ?

Hi all , I currently have some Java classes. Instead of converting them to Javascript, I am exploring of using Java XPCOM or Liveconnect to connect js and java into a firefox extension. However, I find some news about Liveconnect is not longer going with firefox 3.6 , is it true ? And anyone knows what's the difference about javaxpcom and liveconnect ? if you have any suggestion about develop java in firefox extension , please let me know! Any help will be appreciated, Thanks, Andrew

1/24/2010 3:12:55 PM 0 "andrewarnier" <andrewarn...@gmail.com>
Java Firefox Extension in Firefox 3.5+?

Hi all , I want to call Java code from within JavaScript code that implements some XPCOM components, at this time. Has anyone attempted to use the Java Firefox Extension in a Firefox 3 .5+? I find the smile project (http://simile.mit.edu/wiki/Java_Firefox_Extension ) - java in firefox extension have no longer to download and the extension is only compatible with Firefox 3.0. it's can't compatible with 3.5+. what I need now is some examples that will help me develop java in firefox extension ? can somebody kindly share ur experience of it ? Any help will be appreci

1/22/2010 10:37:59 AM 0 "andrewarnier" <andrewarn...@gmail.com>
FW: calling Java code from Firefox extension

Hi all, Well, as I said, I want/need to have the firefox extension communicating with another java application. From what I've read so far it seems that the best approach is to have a XPCOM. That seems exactly like what I need! the problem is that the page (https://developer.mozilla.org/En/JavaXPCOM ) was last updated in 2006 and the examples in 2007 (or something like that), not only it's old but also very poorly documented and explained. Since the JavaXPCOM is so poorly documented, (1 ) what I need now is some examples that will help me develop a working skeleton on which I will

1/19/2010 6:37:35 AM 1 "andrewarnier" <andrewarn...@gmail.com>
How to check java configured correctly

Hi, How to check java configured correctly for firefox Thanks in advace vidhya

1/18/2010 4:14:30 PM 0 vidhyadharan D <it.vidhyadha...@gmail.com>
calling Java code from Firefox extension

Hi all, I'm new to firefox extension. I want to calling Java code from within a Firefox extension, I can using liveconnect and xpconnect to do it , I'm just want to know what's different about it and JAVAXPCOM. If I using javaxpcom , am I need to via JNI to complete ? Again, any help here would be seriously appreciated. Even if it's just a little insight.

1/18/2010 2:37:20 PM 0 "andrewarnier" <andrewarn...@gmail.com>
Error calling method on NPObject

Hi all, When I install firefox extension from http://simile.mit.edu/repository/java-firefox-extension/ But when I install java-firefox-extension-2.0.0.xpi then restart firefox , It's shown me the msg as follows : Error calling method on NPObject! [plugin exception: java.lang.IllegalArgumentException: No method found matching name newInstance and arguments [com.sun.java.browser.plugin2.liveconnect.v1.JavaNameSpace, java.lang.Integer]]. Any help will be appreciated ! Cheers, Andrew

1/18/2010 10:25:25 AM 0 "andrewarnier" <andrewarn...@gmail.com>
How can I dump log messages from Java code in Firefox extension?

Hi, I can call a Java code I wrote from a Firefox extension written in JavaScrpit, using the workaround described at: https://developer.mozilla.org/en/Java_in_Firefox_Extensions But when I try to dump some debug messages by using Logger or System.out, nothing appears in the console of Firefox. What is a good way of recording log messages in JavaCode that is called from a Firefox extension? Just to be clear, what I mean by the console is the command-line window that shows up when you invoke firefox.exe with the "-console" option. I changed the value of "browser.dom.window.dump.

1/9/2010 8:29:56 AM 0 Sachiko Yoshihama <sachiko.yoshih...@gmail.com>
connecting Mozilla Thunderbird from Java

Hello! I want to connect Mozilla Thunderbird emailclient from my Java-Application. So I want to read and edit contacts from Thunderbird and read and write ema= ils from Thunderbird via my Java Application. What can I do to solve this problem? Can I use JavaXPCOM or xulrunner? Or what else can I do?=20 I know the Java Outlook Connector (http://www.moyosoft.com/joc/). Is there = anything like this for Mozilla Thunderbird? If someone can give me some advice or some short sample code, that would be= nice. Thank you very, very much! Plantschen oder Grog? Der Arcor-Wetterdienst weiss B

8/7/2009 2:01:03 PM 0 r...@arcor.de
MozillaInterfaces java sources in cvs

hi, where in Mozilla CVS are sources of JavaXPCOM MozillaInterfaces.jar, that one can find in xulrunner\sdk\lib? So far I have found the idl files, .h and .cpp files, JavaXPCOM source, but don't see the .java sources. Or are they generated on the fly from idl files during build? I'd like to see them mainly to browse their history. Thanks! Jacek

7/29/2009 1:08:35 PM 1 Jacek Pospychala <jacek....@zend.com>
What is the ProgID of Thunderbird?

Hello to everyone, a quick question... The below code works fine with Outlook but I would need to work with Thunderbird. I think I should change the ProgID from 'Outlook.Application' to the Thunderbird one, but I do not know what it is! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function sendEmailWithOutlook(emailAddress, subjectText, bodyText, Attach) % sendEmailWithOutlook - Functions sends email to an email address, % Microsoft Outlook has to be installed. % emailAddress: Email address of the recipient % subjectText: Message displayed in the subj

7/5/2009 5:20:55 PM 0 Rebecca <rebecca.smi...@googlemail.com>
Memory leaks when embedding and using JavaXPCOM

Hi all, We=92ve made a simple XULRunner app, coded in Java. We=92ve observed that it has huge memory leaks. Rewriting the same app in Javascript, we observe no leaks. So, we suspect there is some problem with JavaXPCOM. Maybe the problem is related with the cycle collector. https://developer.mozilla.org/En/Interfacing_with_the_XPCOM_cycle_collector It only traverses objects that return a helper object when QI'ed to nsICycleCollectionParticipant. If it encounters an unknown edge during its traversal, it gives up on that edge; this means that every edge involved in a cycle must

7/1/2009 9:47:53 AM 3 =?ISO-8859-1?Q?David_P=E9rez?= <san...@gmail.com>
0.1654419 Peek Inside And Realize That Dream ... 0.3042992

0.8877273 Peek Inside And Realize That Dream ... 0.1374431 0.1654419 Now Visit Tobacco Is Drugs 0.3042992

5/9/2009 2:41:31 AM 0 0.8877273realizeitist...@0.1374431now.com
nsIDOMCSSStyleSheet.getCssRules()

Hello, I try to call the methode getCssRules() but it keeps returning an error. I call it using queryInterface over every item in nsIDOMStyleSheetList; here is the code : for (int i = 0; i < getStyleSheets().getLength(); i++) { nsIDOMStyleSheet domStyleSheet = documentStyle .getStyleSheets ().item(i); nsIDOMCSSStyleSheet cssStyleSheet = null; try {

4/24/2009 1:59:49 PM 0 gecko <rahmis...@gmail.com>
extracting CSS from a document

hi all, I'm working in a project and I need to extract the CSS, but I don't know how I could do it using Gecko/JavaXPCOM. I read through XPCOM specs but I couldn't find an Idea... If anyone could help me with suggesting a way to do the extraction or a link that could help me. thank you in advance sincerely

4/16/2009 9:14:46 PM 0 gecko <rahmis...@gmail.com>
object tag and mayscript atribute with Firefox

Hi, It seems Firefox3 don't use mayscript attribute. How with jsp:plugin could i calling java function from javascript ? Regards Philippe

3/31/2009 6:59:18 AM 0 phil89 <pco...@free.fr>
Make XUL application visible

Hi I am using Java XPCOM and xulrunner-1.8.0.4. Im trying to embed xulrunner in Java, as I am sure many people are. I seem to be stuck, I believe my Java code is starting xulrunner correctly, but I see no visible window. Should the window be visible? The code: // First, get the event queue service. This handles all event queues in // XPCOM. nsIEventQueueService eventQueueServive = (nsIEventQueueService) serviceManager .getServiceByContractID("@mozilla.org/event-queue-service;1", nsIEventQueueService.NS_IEVENTQUEUESERVICE_IID); // Next, we want to get the UI

3/17/2009 1:43:41 PM 1 gro...@gmail.com
jvm crash on ubuntu 8.10 with javaxpcom code

Hi all i'm trying to run some examples of the javaxpcom interfaces , in order to do that , i've download the xulrunner-sdk tar and execute the following code : public class Main { public static class LocationProvider implements IAppFileLocProvider { File grePath; public LocationProvider(File grePath) { this.grePath = grePath; } public File getFile(String aProp, boolean[] aPersistent) { System.out.println(aProp); System.out.println(aPersistent); File file = null; if (a

3/9/2009 3:15:32 AM 0 Gonzalo Tirapegui <tecklasta...@gmail.com>
run mozilla in a swing JPanel

I would like to run some XHTML in a JPanel ( swing fat client ) XHTML as of XHTML version 1.1 The XHTML I would like to display contains ruby annotation for displaying phonetics information above and/or under text elements see : http://www.talisman.org/~erlkonig/japanese/ for a sample of such annotations any Idea of where I should look for some information , code , tips etc. thank you for reading

3/4/2009 12:27:29 PM 0 patrickb <boul...@free.fr>
Disable Link-Navigation in mozSwing

Hi folks I have a special use case for mozSwing: I have to disable the link navigation, so that when the user clicks on a link nothing happens. The user should view a single page which he can=92t change by clicking on a link. I tried the following: I attached a nsIWebProgressListener and in onLocationChange I canceled the request: request.cancel(IXPCOMError.NS_ERROR_ABORT); The problem is that the page already changes its location but can=92t be loaded completely because I disabled the request. I then played around with the code and finally ended with MozillaPanel.goBack(). C

2/19/2009 2:13:24 PM 0 nimloth <morph...@rabbithole.ch>
Getting selection in string form

Hi, I'm having a problem getting the selection from an nsISelection in string form. It seems that the XPCOMJavaProxy is returning the Object 'toString()' method rather than the nsISelection.toString() method: org.mozilla.interfaces.nsISelection@dd75a4 Is there a work-around for this?

2/17/2009 3:13:11 PM 0 Derrick Rice <derrick.r...@gmail.com>
String parameter in nsIOutputStream.write(...)

Hello, I have a few interrelated questions about the write() method of the interface org.mozilla.interfaces.nsIOutputStream that takes two arguments; aBuf of type String and aCount of type long. 1) The C++ counterpart of the method takes a char array. Exactly what is being done to convert a Java String to a C++ char*? 2) What should the value of aCount be? Should it be aBuf.length() or aBuf.getBytes().length or some other value? 3) What if I want to write binary data? Is this interface suitable for that task at all? Thank you. -Seong

2/12/2009 6:39:33 PM 1 seong <jkim...@gmail.com>
Using cookies with XulRunner

Hi, I want my embedded browser (XulRunner+JavaXPCOM) to work with cookies. Now, every cookie is stored in a file called cookies.txt in the XulRunner instalation directory. I would like to store diferent cookies for different users, how can I change the directory where xulrunner reads and stores cookies?? Has it something in common with initializating a profile?? I have done this and i don't see any diference: File profDir = new File("C:/temp/testProfile"); aMozilla.initialize(this.grePath); aMozilla.lockProfileDirectory(profDir); aMozilla.initEmbedding(this.grePath,

2/10/2009 4:53:20 PM 0 Sergio <sbal...@gmail.com>
Basic authentication

Hi all, I have embedded the browser in my Eclipse RCP application and I want to access a page protected by basic authentication. I already have users' credentials and I want to set it directly to the browser so that it sends it automaticaly and doesn't ask the user. Is there a way to do it? Thanks a lot Wenca

2/6/2009 10:51:14 AM 4 u...@domain.invalid
got "failed to initialize mozilla" while trying to load mozswing

Hi all, I ve done a Java application that uses mozswing to integrate a browser. I can run it right on Windows but on Linux I got this error while trying to start the application (even if the main JFrame starts ): bluesman@ray:~/Apps/MZBrowser$ java -jar MZBrowser.jar www.google.com debug 6-feb-2009 3.40.46 org.mozilla.browser.MozillaInitialization initialize INFO: Using xul runner dir: /usr/lib/ xulrunner 6-feb-2009 3.40.46 org.mozilla.browser.MozillaInitialization initialize GRAVE: failed to initialize mozilla org.mozilla.browser.MozillaException: java.lang.AbstractMethodErro

2/6/2009 2:49:40 AM 4 blues-man <ebbal...@gmail.com>
Using JavaXPCOM and XulRunner under linux

Hi everybody, I've seen somepost about embedding xulrunner with JavaXPCOM and I wonder if you can help me. I've managed to create an embedded browser in swing using javaxpcom and xulrunner-1.8.0.4 on windows. I use a canvas to embed the browser, getting the handle of the canvas natively from the SO. My code is very similar to JWeb one posted here http://groups.google.com/group/mozilla.dev.tech.java/browse_thread/thread/898ba6751d0c57f7/6e7e6402f67eb4ec?#. The only exception is the way of getting the canvas handle. Anyway, my code is working on windows but I need to make this w

2/3/2009 11:22:12 AM 1 Sergio <sbal...@gmail.com>
The operation timed out when attempting to contact ...

We are using gecko (XULRunner 1.8.1.3 and javaxpcom) in our application to load web pages for given urls. It was all working fine until we asked it load one particular site. It gave 'The operation timed out when attempting to contact www.xyz.com' message for that site. After going through some posts I have increased system tcp/ip connection max retransmission requests (TcpMaxConnectRetransmissions) and hence the connection timeout period and tried. It did not make any difference. So we changed the above setting back to original as it did not help. Worst part is it now gives the same ti

1/29/2009 5:40:20 PM 0 sunitha <sunithapa...@yahoo.co.in>
XPCOM Component Written in Java

I've also posted this to the mozswing mailing list, since that's what I'm using. But this seems to be a core XPCOM problem I'm having. Let me just say that this I am not looking to start a VM from mozilla... my entire application is java, with mozilla used via JNI (mozswing/JavaXPCOM). What I want to know is why my components cannot be directly access by the javascript, yet they seem to interact in other ways. ------------------------------------------ What is so confusing is that I see the javascript successfully interacting with the java, but as soon as I attempt to explici

1/23/2009 10:16:04 PM 11 Derrick Rice <derrick.r...@gmail.com>
Mozilla document APIs

Hi, Anyone knows the link for the document APIs? Example: org.mozilla.xpcom package classes Regards, Jay Malaluan

1/8/2009 3:25:28 AM 0 Jay Joel Malaluan <exst_jmalal...@yahoo.com>
XULRunner mozcrt19.dll error

I have been using XULRunner 1.8 and 1.9 betas via javaxpcom in my Eclipse application. It had been running ok until I tried to upgrade to the latest release recently. I tried version 1.9.0.5 and got following error when it tried to initialize XPCOM: "This program could not start because MOZCRT19.dll could not be found. This problam may be solved by reinstalling the program." I back tracked various releases and found that this problem started at RC3. RC2 was ok. The difference between RC2 and RC3 that I believe is related to the problem: "Microsoft.VC80.CRT.manifest" vs. mozcrt19.d

1/6/2009 1:49:21 AM 0 "fch...@gmail.com" <fch...@gmail.com>
How to get Position information of HTML element?

I want to get width and height of HTML element because I want to use these information to segment and analyse a web page. I searched an answer in FAQ of Gecko. It tells that Gecko can get these information easily. But I am a beginner of Gecko and don't want to dive into it. It seems hard even trying to compile it. Could anyone help me to achieve my goal ? Where should I get started? Thanks. https://wiki.mozilla.org/Gecko:Frequently_Asked_Questions Q. Can I use the Gecko engine to get the width information of some HTML elements (such as table,tr,td)? The element width information

12/20/2008 11:25:19 AM 0 fancyerii <fancye...@gmail.com>
JVM start up

Which component starts java? I'd like configure mozilla to add JVM system propertiesat start up

12/19/2008 5:32:39 PM 0 "robs lards" <pippo...@gmail.com>
How to use nsiVariant's

Hi, If you look at the nsiVariant documentation: http://www.xulplanet.com/references/xpcomref/ifaces/nsIVariant.html You can see it has a lot of methods like getAsAString() that are declared as [noscript]. This results in an empty interface in Java XPCom: public interface nsIVariant extends nsISupports { String NS_IVARIANT_IID = "{6c9eb060-8c6a-11d5-90f3-0010a4e73d9a}"; } How can I deal with variants in Java? No read seems possible. The only workaround I see is this, after a question in an Eclipse forum: http://www.eclipse.org/newsportal/article.php?id=43429&group

12/12/2008 11:34:23 AM 1 =?ISO-8859-1?Q?David_P=E9rez?= <san...@gmail.com>
Whole plug-in in Java?

Hi, i'm a completly beginner in developing plugins for Firefox. So i've a fundamental question first: Is it possible to write the whole plugin in Java, so that it only have to write the code once for all operating systems? thanks. regards

12/2/2008 1:38:22 AM 3 ravenw...@gmail.com
LiveConnect and/or JavaXPCOM

Hi guys, I'm having a bear of a time here trying to work with some Java code. I've got an extension going in Firefox (the XUL, JavaScript, CSS is great) and an XPCOM component in C++ (my best language) to do most of the heavy lifting. The last thing I need to do is interface with a Java library (Apache's Nutch) for a few calls. Having discovered JavaXPCOM and LiveConnect this seemed like cake, but the documentation is definitely spotty so when my own fiddling doesn't work I can't find anywhere to turn. First, I already implemented an XPCOM component in C++ so I decided to do a Jav

12/1/2008 7:24:51 PM 5 poorboywilly <j.cr...@aggiemail.usu.edu>
how to get events from a DOM Element

Hi all, i am newbie with javaxpcom i have created a simple example to display a page using java. i want to be able the receive an event when a button is clicked in a web from (without using javascript?). can anyone point to a piece of code that achieve that task? Thank you in advance Emeric

11/24/2008 1:03:45 PM 0 emerico <kwemoueme...@yahoo.fr>
preferences-service, anyone know where to find a list of all preferences available?

Is there a URL to a site that someone can point me that lists all the preferences that can be set on the preferences-service? I'd like to disable most of the things that are not required in headless operation as I'm running gecko through JavaXPCOM and a lot of stuff could be disabled/turned off. Thanks.

11/6/2008 9:29:35 PM 0 Dzenno <dze...@gmail.com>
ObserverService.addObserver fails with 1.9.x

Hi, Trying to call addObserver fails at runtime now. This used to work with 1.8.1.3. I put in an Observer instance so that I can get HTTP header info and other HTTPChannel details. Here is a snippet of code showing how I add an observer (this works no problems with 1.8.1.3): WebProgressListener listener = new WebProgressListener(); HTTPHeaderObserver httpObserver = new HTTPHeaderObserver(); try { // Creates a latch with count 1 latch = new CountDownLatch(1); listener.setLatch(latch); webProgress.addProgressListener(listener, nsIWebProgress.NOTIFY_STATE_DOC

11/3/2008 7:46:06 PM 0 Dzenno <dze...@gmail.com>
Prototype WTP 0.2 released,this release for Prototype 1.6.0

Prototype WTP 0.2 released,this release for Prototype 1.6.0 from:http://www.googlemother.com/wpblogs/?p=7281 Prototype Prototype is a JavaScript Framework that aims to ease development of dynamic web applications. Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere. Eclipse WTP support javascript code content assistance,but does not support prototype js. prototypeWTP is a tool make Eclipse WTP support prototype js code content assistan

10/10/2008 2:46:36 AM 0 "aoe...@gmail.com" <aoe...@gmail.com>
getSession.give allways same Id with firefox

Hi, I have launched on same PC IE and Firefox 3.0.3 . When i use IE i have an new Session Id for each browser, but with Firefox that' allways same ID ? Regards Philippe package servlet24; // http://172.16.0.101:8080/infodev/servlet/servlet24.Servlet2 import java.io.IOException; import java.io.PrintWriter; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class Servlet2 extends HttpServlet { private static final String CONTENT_TYPE = "text/html; charset=windows-1252"; public void init(ServletConfig config) throws Servl

10/2/2008 3:50:00 PM 0 phil89 <pco...@infodev.fr>
X509 Client certificate - how to prompt user for Master Password

Hi There, I'm working with the SWT Browser widget inside a Web Browser view I am creating and I am trying to get it to connect to a SSL enabled website that requests a clientside certificate. I'm using XulRunner 1.8 (Mozilla 2) in Java i.e JavaXPCOM. I can use nsIX509CertDB to import the PKCS12 keystore that holds the client side certificate and so long as the browser then remains open I can connect to websites requesting my user cert without problem. However, when I restart the browser I can no longer access the SSL enabled site, the client certificate is still in there (I can se

9/24/2008 8:35:50 AM 0 william.b...@gmail.com
Sample code - JavaXPCom

I have a Java app that works as an HTTP proxy which I'm trying to integrate with Gecko through the JavaXPCom to utilize its DOM rendering abilities to enable server-side DOM rendering/creation/ serialization for scrape purposes. The problem I'm trying to solve with this is to enable server-side DOM creation. For example, if DOM of some page is entirely javascript built, accessing this page through plain Java APIs will get me the markup of that page with javascript in there. However, I currently have no way of simulating running/opening/rendering that page server- side so that javas

9/19/2008 7:11:13 PM 1 dze...@gmail.com
Liveconnect may be removed

I'd like to send data from JS to Java and back. I have to use a Java applet, because JS is too slow for my purposes. So I want to use LiveConnect for the communication, but I read at http://developer.mozilla.org/En/LiveConnect that "LiveConnect may be removed from Mozilla 2.0 according to this post by Josh." What should I do now?

9/17/2008 10:34:20 AM 1 tobs...@googlemail.com
running java app on osgi runtime...

I have a java program which validates html document and outputs the validation results. The java program uses a few eclipse user interface plugins. Now I want to get rid of the user interface plugins of eclipse and run the java program on OSGi runtime. I managed to get rid of the user interface plugins of eclipse in the java program. Now I am trying figure out OSGi runtime to run the java application without eclipse user interface plugins. Can anyone provide me a few tips on how to figure out OSGi runtime to run the java application? I read the following articles http://www.ecl

9/9/2008 3:57:56 PM 0 New <newoutlo...@yahoo.com>
can not get nsidomdocument from html file using mozilla browser instance

The following java works as java appliation. It spits out all tags in the HTML file. When I integrate the app with eclipse application, the app does not pass the while loop. Does anybody provide me a sample code to get nsIDOMDocument from HTML file using Mozilla browser instance. public class TestSwtBrowser { public static void main(String[] args) { //Display display = new Display(); Display display = Display.getDefault(); final Shell shell = new Shell(display); //final Shell shell = new Shell(); final Browser browser; browser = new Br

9/4/2008 7:42:42 PM 2 New <newoutlo...@yahoo.com>
questions for java

Core Java Interview Questions Part 6 http://seeallinterviewquestions.blogspot.com/2008/07/core-java-interview-questions-part-6.html Interview Questions on Core Java Part 2 http://seeallinterviewquestions.blogspot.com/2008/07/interview-questions-on-core-java-part-2.html Core Java Interview Questions Part 1 http://seeallinterviewquestions.blogspot.com/2008/07/core-java-interview-questions-part-1.html Core Java Interview Questions 4 http://seeallinterviewquestions.blogspot.com/2008/07/core-java-interview-questions.html Java Interview Question 2 http://seeallinterviewquestions.blogspot.co

8/6/2008 12:59:48 AM 0 fathima <fathimain...@gmail.com>
java free books

General Java Programming FAQs http://freestudybookshere.blogspot.com/2008/07/general-java-programming-faqs.html General Java Programming Tutorials free http://freestudybookshere.blogspot.com/2008/07/general-java-programming-tutorials-free.html Introduction to Programming Using Java, Fifth Edit... http://freestudybookshere.blogspot.com/2008/07/introduction-to-programming-using-java.html Communication and Codes of Conduct http://freestudybookshere.blogspot.com/2008/07/communication-and-codes-of-conduct.html A thread pool implementation http://freestudybookshere.blogspot.com/2008/07/thre

8/1/2008 2:26:58 PM 0 malli <malliin...@gmail.com>
Can not get some service in JavaXPCOM

Hello, everybody I am working on JavaXPCOM now, but I have some trouble with Extension Manager. I can't get the nsIExtensionManager interface in following code: nsIExtensionManager em = (nsIExtensionManager)serviceManager.getServiceByContractID("@mozilla.org/ extensions/manager;1", nsIExtensionManager.NS_IEXTENSIONMANAGER_IID); I got such error: "getServiceByContractID" returned an error condition (0x80570016) When I try to look into the problem, I discovered that I couldn't get many service interfaces, such as nsIXULAppInfo of "@mozilla.org/xre/ app-info;1" compone

7/30/2008 5:59:50 AM 0 Jason <franceja...@gmail.com>
see all java books

Answers to Questions and Exercises: Concurrency http://freedownloadablebooks.blogspot.com/2008/07/answers-to-questions-and-exercises.html Questions and Exercises: Concurrency http://freedownloadablebooks.blogspot.com/2008/07/questions-and-exercises-concurrency.html Atomic Variables http://freedownloadablebooks.blogspot.com/2008/07/atomic-variables.html Concurrent Collections http://freedownloadablebooks.blogspot.com/2008/07/concurrent-collections.html Thread Pools http://freedownloadablebooks.blogspot.com/2008/07/thread-pools.html Executor Interfaces http://freedownloadablebooks.blo

7/22/2008 2:41:39 AM 0 radha <radhikain...@gmail.com>
find Samples about mozilla webclient

Hello,everyone: I'm developing a web Crawler program by Java . I want to use Mozilla browser to crawl Ajax page( or post downloaded by javascript) and parse javascript . I have known mozilla web client provide some java interfaces . But I didn't find some good samples for webclient. And a Question: BrowserControlFactory.setAppData(Dir); what's the "Dir"? is it Gecko dir?XULRunnder dir ?or entire mozilla-bin dir? ------Thanks All of You

7/16/2008 7:59:38 AM 0 ictclas <calvin.he....@gmail.com>
Hyperlinks opening

Hello everybody! Can you give me some advice please? I'm working with "mozswing" project now, and i have a problem. I need to force the mozilla to open all the links in one window. Without tabs, without new windows creation. I also need to forbid the popup-windows for mozilla. How can i do that by code? Guys from mozswing@mozdev.org adviced to ask here about that.

7/12/2008 11:11:22 AM 0 Dmitry Solovyow <trigan-...@DevelopmentOnTheEdge.com>
XULRunner for Swing Browser Support

Hi, I download mozswing and xulrunner and successfully have integrated the mozswing browser into my Java application. My problem is that with the required xulrunner distribution now needing to be packaged with the application my installer executable size has gone up by about 13MB! (the size of the /xulrunner directory). My question is that probably I do not need many of the files in this build (all I do is use the browser to show simple web page content, nothing else) so is there an available smaller build? If not, what files might I be able to remove? Thanks, Neil

7/7/2008 5:17:12 AM 0 njcoll...@hotmail.com
KEYLISTENER into JSCROLLPANE don4T running with FIREFOX3

Hi, It seems me keylistener don't running on FIREFOX3 into JSCROLLPANE ? Regards Philippe import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class EssaiAscenseur6 extends JApplet { public void init() { try { DrawPanel dp = new DrawPanel(); dp.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); dp.jbInit(); add( new JScrollPane(dp) ); } catch (Exception e) { e.printStackTrace(); } } public static void main (String[] args) throws Exception { JFrame frame = new JFra

7/5/2008 6:30:12 PM 0 phil89 <pco...@infodev.fr>
nsIPrintSettings.setPrinterName has no effect in CUPS/Linux when printing silently

Hi, Was someone lucky to get silent printing in Linux / CUPS for non- default printer? Suppressing print dialog with settings.setPrintSilent(true) causes Gecko to print to default CUPS printer ignoring printerName property. When silent print is off and you select required printer in dialog all works fine. It seems like print dialog implementation kicks CUPS to use specified printer. Windows works fine... Gecko is 1.9 Thanks

7/1/2008 4:47:46 PM 0 andrew.andrijche...@gmail.com
Need to embed Mozilla in to java swing

Hi ... In my java Swing based application I need to display a web page which uses heavy javaScript and CSS , Usage of JEditPane will not satisfy my need since it is not displaying any Css Component and java script ... While searching in the internet i get to know about the XULRunner ..but i was not able to make .. I was there in .Net For the past years ..and is new to java ...So somebody please Tell me i What i have to do to display the web pages ... my application is all most Platform independent and hope it will retain after the putting the browser ... Any Experts k

6/30/2008 4:27:32 AM 1 prasanth <chakkaraku...@gmail.com>
Open link in a new window

It seems that the "< ahref='_blank'...>" in the loaded HTML document of embedded Mozilla does not actually cause the URL to be loaded to a new page. Is there a way to do this? Thanks,

6/29/2008 2:31:35 PM 0 njcoll...@hotmail.com
XPCOMException: getServiceByContractID gates simple JavaXPCOM test

I am unsuccessful in running a simple test of JavaXPCOM as I get the error: grePath = D:\Downloads\Mozilla\XUL\xulrunner org.mozilla.xpcom.XPCOMException: The function "getServiceByContractID" returned an error condition (0x80004002) at org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native Method) at org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(XPCOMJavaProxy.java:143) at $Proxy0.getServiceByContractID(Unknown Source) at com.oracle.appsfdoc.fusion.SimpleLauncher.main(SimpleLauncher.java:87) In a previous post to this forum, "Having trouble wi

6/26/2008 9:51:50 PM 0 John Poole <john.po...@rocketmail.com>
Unable to click on the links in embedded browser

Hi, I have successfully embedded mozilla inside my swing application using XULRunner 1.8.4 and JavaXPCOM APIs. I am also able to load an URL in the browser. But when I try to click on any link in the loaded page, it does not respond. My expectation is that it would load the new link in the default browser that I have set. It seems that my embedded browser is unable to listen to the onClick events. Does anyone have an idea how to get around with this problem? Thanks, Janaki

6/23/2008 2:48:55 AM 1 jchaga...@gmail.com
XPath evaluator

Hello. Can anyone answer why xpath_eval is failed? nsCOMPtr<nsIComponentManager> componentManager; NS_GetComponentManager(getter_AddRefs(componentManager)); nsCOMPtr<nsIDOMXPathEvaluator> xpath_eval; nsresult res = componentManager- >CreateInstanceByContractID("@mozilla.org/dom/xpath-evaluator;1", nsnull, nsIDOMXPathEvaluator::GetIID(), getter_AddRefs(xpath_eval));

6/13/2008 7:04:02 AM 0 gsimon...@gmail.com
working with liveconnect

Hello, I'm working on a firefox extension that needs to use java classes and requires communication both ways between java and ff. So liveconnect seems to be the way to go from what I'm reading. However I'm trying to write just a very basic javascript file that declares a java string (like in the tutorials) and it doesn't appear to be running properly. I'm pretty sure it is firefox and not my javascript because I've run a number of liveconnect tests I've found online and am getting inconsistent results. For example I attempted the test found here: http://srp.stanford.edu/demo/

6/3/2008 1:07:27 AM 2 "patmccl...@gmail.com" <patmccl...@gmail.com>
How to get the rendered dom element's coordinate infos in JAVAXPCOM

I want to know the exact position (X, Y, width and height) of dom element of a HTML. How can I achive this using JAVAXPCOM?

5/20/2008 2:18:42 AM 2 =?GB2312?B?zfjKwsvmt+c=?= <xuqy1...@gmail.com>
AES issue with Mozilla 1.9

You can find the bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=434101 In short, for some reason the AES decryption algorithm no longer seems to work in Firefox 3. I have had this bug posted for a few days: can anyone confirm this bug for me? There is a very simple attachment I've included for testing. Does anyone have an idea what might have caused this? Will it be fixed before the final Firefox 3 is released?

5/19/2008 10:06:51 PM 1 stechz <ste...@gmail.com>
opening multiple windows with Mozilla Embedding

Hi, Am trying to open a Browser window using Mozilla Interfaces. I could achieve opening one window. But now I want to open Multiple windows ( Child windows). tags may also Do. Below is the code that I used to open a window. mozilla.initEmbedding(grePath, grePath, locProvider); serviceManager = mozilla.getServiceManager(); appStartup = (nsIAppStartup) serviceManager.getServiceByContractID( "@mozilla.org/toolkit/app- startup;1",nsIAppStartup.NS_IAPPSTARTUP_IID); windowCreator = (nsIWindowCreator) appStartup.queryInterface(nsIWindowCreator.NS_IWINDOWCREATOR_IID); windowWa

5/14/2008 4:16:54 PM 0 vall...@gmail.com
POSTing binary data and nsIStringInputStream

Hi all, I have embedded browser into my applicaction using JavaXPCOM. Now I need to send binary data via POST http requests (uploading files onto a server) . I found how to do this using nsIStringInputStream, it works great when data is text, but unfortunately it's method setData() gets as a parameter java String, not byte array, so it isn't usable for binary data. Does anybody know any sollution? Maybe there is posibility to build nsI(Binary)InputStream from nsIBinaryOutputStream? here is the code I use to load page with POST attached: org.mozilla.interfaces.nsIWebNavi

5/2/2008 12:07:18 AM 1 bzabo...@gmail.com
FREE APPLET MEMORY ?

Hi, Why memory Applet is not free when i leave applet page to an simple HTML Page ? Regards Philippe

4/22/2008 5:09:31 PM 0 phil89 <pco...@infodev.fr>
How to find the EventHandler

Hi all, I'm writing a Java program to extract some informations from an HTML page accessing to its DOM. I'd like to know, if is possible, the name of the JavaScript function associated to an event of a DOM's element through addEventLIstener. In example, given a node "node" in an HTML page, a JavaScript function "j_function" associated to that node on the click event via JavaScript through the code node.addEventListener("click","j_function();",true); I want, analizing the DOM, to find the name of the function "j_function" and the event "click" of the eventListener registered

3/20/2008 6:58:48 PM 0 saiboot <nom...@nomail.no>
why mozilla does not provide the function or feather which using java to program XPCOM components

Hi, all guys, I have a question that is there any way to realize the functions of using java to program XPCOM components. As you know, there were such more functions which can help mozilla to acknowledge the XPCOM components which were programed by using javascript, C++, and python except java only, why not?! In my mind, if i can integrate java and mozilla togeter, that will be fantastic and so great. Is there any body dedicating in this?!

3/19/2008 7:58:22 AM 4 wushli <wus...@gmail.com>
Launching mozilla like an GUI component into an Applet ?

Hi, I need to integrate into an Applet some GUI component. Currently i could use an old Java project IECANVAS to launch IE into an applet like an component and not into an external Web page . In my page there is many component and i search an Component for Mozilla ? Regards Philippe

3/17/2008 5:19:05 PM 1 phil89 <pco...@infodev.fr>
limit on switch?

Is there a limit on the number of "case" statements in a switch contstruction? (I need one for every hour in a 12day period ~ 250)

3/4/2008 9:03:35 PM 0 Rick <Rick0.merr...@nospam.gmail.com>
nsIUnicharStreamListener

Hi, I'm hoping someone can point me to some sample code or give me a little feedback. I'm building a Java application with Mozilla embedded using XPCOM. I'm pretty sure I need to use nsIUnicharStreamListener to do part of what I want to do. I've written a class that implements the nsIUnicharStreamListener interface, but I'm at a total loss as to what to do from there. I don't understand how to hook it into the browser so that it gets called and feeds me the data. Any help or a pointer to sample code would be really helpful at this point. Thanks! ==Andrew

3/4/2008 8:03:57 PM 0 punkfair...@gmail.com
JavaXPCOM---how to interact with---- > XULRunner on Remote system

Hi, Eclipse ATF interacts with local XULRunner through javaxpcom. Is it possible to do the same putting XULRunner in a remote machine, without changing ATF code. Is there any feasible way ? Is there any agent which will run in remote machine and ATF's calls to JavaXPCOM should be mapped to remote calls. ( instead of local native call) Thanks, Ansu

2/28/2008 1:03:26 PM 0 Ansu <ansuman.pa...@gmail.com>
JavaXPCOM components

I sent an email to Javier Pedemonte's gmail addr but I haven't received a response so I figured I'd float my email here and maybe someone else can help me. I work on a team that develops a C++ application with a plug-in extension system. We are looking to write plug-ins in java and one of the technologies we are investigating is XPCOM. It looks like the JavaXPCOM code to write Java components is not in the current Mozilla trunk. Comments on the bugzilla issue suggest that Javier has some code that works but needs to be integrated with the current trunk. If we decide to use xpcom, we

2/14/2008 8:30:19 PM 2 retrev <pythonp...@gmail.com>
Why does JavaXPCOM require XULRunner?

Hey guys, This question has probably been asked a million times, but after searching the archives I didn't find anything: Is it possible to use JavaXPCOM to make Java apps communicate with Firefox extensions, or is it truly XULRunner-only? I made a sidebar Firefox extension to act as the GUI for a command-line Java app I wrote. The only problem is that the communication is one-way -- I can use nsIProcess to launch the .jar file from the extension, but it can't receive any information back as the app is running! Thanks very much.

2/9/2008 4:09:56 AM 0 "Jack Smith" <smith....@gmail.com>
Drag and drop on web browser

How do listen to the dropping of a file on nsIWebBrowser?

1/31/2008 2:51:12 AM 0 "IA" <aimra...@gmail.com>
Browser redirect

Hi, I'm developing a crawler by emdedding gecko in my java application. Well, maybe it's better if i make an example : supposing that i have a form to compile, but this form doesn't implements a submit button, instead it calls a javascript function that redirects the data to another page, and this page redirects the browser to the final page. Now, this procedure, if it's made by SWT Browser, calls che completed(..) method of ProgressAdapter three times (every time that a single page is loaded). but i would be informed only when the form page is loaded and when the final page is

1/20/2008 3:36:50 PM 0 Marco <marco.pavio...@gmail.com>
JavaXPCOM from C++

I'm looking at JavaXPCOM and it looks as if it only supports running xpcom/xul from within a java app. I have a jvm embedded in my C++ app and I want to use XPCOM to create a cross-language API. I searched mozilla.dev.tech.java and found a couple of older posts related to this stating that this is not supported. I looked through the code and it seems that much of the needed infrastructure is in place to handle this. src/nsJavaWrapper.h defines GetNewOrUsedJavaWrapper() which seems to create/retrieve a proxy for an XPCOM object. nsJavaXPCOMBindingUtils.h has InitializeJavaGlobals()/

1/14/2008 2:27:27 PM 1 retrev <pythonp...@gmail.com>
Help needed with LiveConnect and JS/Java communication

GOAL: To pass the window handle returned by window.open from JS to Java so that I can work with browser windows from Java. SCENARIO (as a proof-of-concept - the real scenario is not so back-and- forth) : //this tests JS calling Java without params... HTML body.onload calls PreviewApplet.testOnLoad() //this tests Java calling JS and passing a parameter from Java PreviewApplet.testOnLoad() calls JS method openPreview(url) in the same HTML page //openPreview calls back to the Applet with a handle to the opened window function openPreview(url) { openedWindow = window.open

1/10/2008 10:45:24 PM 2 "andy.kri...@gmail.com" <andy.kri...@gmail.com>
How to add a listener on a nsIWebBrowserStream

Hello, I'm developping an SWT software with the Browser Widget. The soft is use to render some XML files loaded in memory. I'm using the nsIWebBrowserStream interface but I have a huge problem. I cannot add any listeners to know when the stream has been complete load to access to the DOM. Is there any way to synchronize the closeStream method with the DOM ? Thx!

12/21/2007 8:52:00 AM 0 Manuel TARANTINI <manuel.tarant...@imag.fr>
Try-catch

Hello, Does anyone else experience problems with try-catch blocks in LiveConnect? According to the following site, try-catch should catch exceptions from Java: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview:JavaScript_to_Java_Communication#Handling_Java_Exceptions_in_JavaScript But, in my case, in order to avoid my Firefox extension failing at the first sign of an Exception (e.g., due to user-submitted data), I've needed to catch the errors first by writing wrapper classes around the methods that return Exceptions. That's ok for very

12/17/2007 2:14:18 AM 0 Brett Zamir <bret...@yahoo.com>
GFX impl on top of Swing

I was reading the following in the embedding FAQ: --- What widget toolkit does Mozilla use? Mozilla makes its own cross-platform widgets for HTML forms, and does not use a 3rd-party cross platform toolkit, nor the native widgets that a platform provides. The widgets are drawn using GFX, Mozilla's abstraction of a drawing toolkit. They are styled with CSS, including minor per-platform tweaks to allow them to look like the native platform's native widgets. This allows full CSS and DOM support of all HTML widgets across all platforms, without requiring each platform to separately s

12/16/2007 11:37:10 PM 0 Sandip <sandipchit...@gmail.com>
Difference in behavior on Mac?

Hello all, I've gotten an extension which uses LiveConnect fully working on Windows, including conveying error messages from Java back to Javascript, but when using a Mac I get this message: "InternalError: Java class net.sf.saxon.xqj.SaxonXQConnection has no public field or method named 'getStaticContext'. The extension even on the Mac is in fact successfully returning a connection object, so I don't think it can be access to the JARs (and again, my simple Java wrapper class and Javascript LiveConnect code are the same as in the Windows extension (besides the OS detectio

12/16/2007 10:58:07 PM 0 Brett Zamir <bret...@yahoo.com>
Problems using trunk (1.9) XULRunner/JavaXPCOM

Hi all, Hopefully this is the right list. I have some code that uses XULRunner/JavaXPCOM following the example here: http://developer.mozilla.org/en/docs/JavaXPCOM:Embedding_Mozilla_in_a_Java_Application_using_JavaXPCOM The code works fine on 1.8.1.3 (contrib), and the latest "official" release of xulrunner, but throws an exception in the trunk (1.9) version. Here's the line of code that causes the exception: windowWatcher.openWindow(null, "http://www.google.com", "main", "resizable,centerscreen", null); And here's the exception: Exception in thread "Thread-

12/13/2007 8:12:28 PM 0 Christopher Rued <c.r...@xsb.com>
Getting full permissions for LiveConnect Java without needing a .java.policy file

Hello, I've just updated an extension called XqUSEme at https://addons.mozilla.org/en-US/firefox/addon/5515 to use the open source Saxonica XQuery engine, avoiding the previous requirement for a separate download (of the hefty Berkeley DB XML native XML database) and included all of the files necessary without need for manually editing files, etc., so the W3C standard XQuery language is now available in Firefox via this extension. The reason I bring this up is that, although this might be already be obvious to some of you, in the process of doing this, I discovered, that

12/12/2007 5:21:45 AM 0 Brett Zamir <bret...@yahoo.com>
DLL files

Hello, Can someone tell me whether it is sufficient to use a URLClassLoader to find JAR files if DLL's are used by the JAR's, or must one actually place the DLL files referenced by the JARs in a specific Firefox-dependent directory? I remember getting my extension to work before by placing the DLL files within the main application directory of C:\Program Files\Mozilla Firefox, but Firefox is not finding the DLL's now (I took them out of the main app dir since I don't want them there), and at the very least, I'd like to place the DLL's in the /components directory of my ex

12/7/2007 2:34:42 AM 0 Brett Zamir <bret...@yahoo.com>
Webclient - Linux/Unix status?

Hello, I'm trying to build the Blackwood Webclient on Linux (and if that happens to work for SPARC Solaris 10). I'm using CVS trunk for both Mozilla and Webclient. Sadly the build instructions coming with Webclient are completely outdated (2004) and the build instructions in the Webclient release notes are incomplete/old and/or only for Win32. Is Linux/Unix support supposed to be actually working (and only documentation missing) or is this completely todo? bye, Maik Merten

12/5/2007 8:11:49 AM 0 maikmer...@googlemail.com
How to add nsIWebBrowserChromeFocus to an embedded browser via javaxpcom

I have embedded a browser in my Java application. Here is the code snippet I used: Mozilla mozilla = Mozilla.getInstance(); nsIComponentManager componentManager = mozilla .getComponentManager(); webBrowser = (nsIWebBrowser) componentManager .createInstanceByContractID(NS_WEBBROWSER_CONTRACTID, null, nsIWebBrowser.NS_IWEBBROWSER_IID); nsIBaseWindow baseWindow = (nsIBaseWindow) webBrowser .queryInterface(nsIBaseWindow.NS_IBASEWINDOW_IID); // Here is a native handle which will contains the browser window. int /* lon

12/5/2007 3:55:24 AM 0 "fch...@gmail.com" <fch...@gmail.com>
"Proper" way to Access Java from javascript

I'm working on a Firefox extension that needs to access some native OS for information. As an example, lets say I would like to capture the Output of uname -a and display it in XUL window. I have accomplished this by adapting with MIT's SIMILE example (http:// simile.mit.edu/wiki/Java_Firefox_Extension). The small java lib I have written gathers information and returns it as a JSON formated string. The javascript in the FF extension calls this java method and uses the string returned. From what I understand (i may be mistaken), the technique used in SIMILE is somewhat of a hac

12/2/2007 8:55:41 PM 0 sam keen <sam....@gmail.com>
Is Java installed?

Hi Is it possible to identify if Java is installed? When Java isn't installed and I'm trying to access any java object, like "alert(Packages.java.lang.String);" the execution of the current javascript is silently interrupted and no exception is thrown. Thanks, telega

11/28/2007 7:46:47 AM 0 telega <tel...@gmail.com>
Getting started

Hello everybody! I have the following two lines of JavaScript in a firefox extension. var msg = new java.lang.String("hello"); alert(msg); However, if I put these same two lines into a xul file ran by xulrunner, I get a "Failed to create Java VM" error. My question is how do I enable Java in a XulRunner application? Thanks! -Michael

11/28/2007 1:17:13 AM 0 "bowma...@gmail.com" <bowma...@gmail.com>
Liveconnect: java.io.InputStream from javascript string

Hi Is it possible to get javascript string (containing binary data) as a java.io.InputStream descendant? I tried to do this: var bytes = new java.lang.String(jsString).getBytes(); var byteIn = new java.io.ByteArrayInput(bytes); but it works incorrectly. P.S. And also is ther a way to convert java.io.OuputStream back to javascript string? Thanks, telega

11/18/2007 6:29:37 PM 0 telega <tel...@gmail.com>

Pages: 2











Newest Articles

[Hendrix] In private browsing
2 hour 23 mins ago

popup blocker exceptions with autoconfig
2 hour 42 mins ago

[Hendrix] update auf version 3.5.8
3 hour 6 mins ago

New Firefox UX Team update: Expanded roadmap, projects & Work Week outcomes
3 hour 11 mins ago

[Hendrix] plavix and ed zvx
3 hour 20 mins ago