From nobody Thu Dec 11 09:30:09 2003 Received: (qmail 3162 invoked from network); 10 Dec 2003 15:42:23 -0000 Received: from unknown (HELO mail-shield2.njit.edu) (128.235.251.172) by mozdev.org with SMTP; 10 Dec 2003 15:42:23 -0000 Received: (from uucp@localhost) by mail-shield2.njit.edu (8.11.6/8.11.6) id hBAFa0c23971; Wed, 10 Dec 2003 10:36:00 -0500 (EST) Received: from nodnsquery(128.235.251.173) by mail-shield2.njit.edu via csmap (V4.1) id srcAAArYai0U; Wed, 10 Dec 03 10:35:59 -0500 Received: from chrome.njit.edu (chrome.njit.edu [128.235.204.83]) by mail-gw5.njit.edu (8.12.10/8.12.4) with ESMTP id hBAFZxsT026086; Wed, 10 Dec 2003 10:35:59 -0500 (EST) Received: from localhost (lz3@localhost) by chrome.njit.edu (8.12.10/8.12.8/Submit) with ESMTP id hBAFZus4007201; Wed, 10 Dec 2003 10:35:56 -0500 (EST) Date: Wed, 10 Dec 2003 10:35:56 -0500 (EST) From: li zhang cis student To: jslib@mozdev.org, mozedit@mozdev.org, objcxpcom@mozdev.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Thu, 11 Dec 2003 09:30:07 -0500 Cc: oyxpcom@mozdev.org, sdk@mozdev.org, xptk@mozdev.org, xulbill@mozdev.org, xulbuilder@mozdev.org, xproject@mozdev.org Subject: [Xptk] mozilla remote applications -- help needed X-BeenThere: xptk@mozdev.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: Cross Platform Tool Kit List-Id: Cross Platform Tool Kit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 15:42:24 -0000 Hi, I have a question about using mozilla certificate for remote applications. I'm doing a Web application using Java and Javascript. The Web server I'm using now is apache tomcat 4.1. My application generates html documents dynamically. For example, I have static html files: main.html. Based on the user action from the browser, my application reads the static html file and outputs some text to the static html file then display that on the Mozilla web browser. I want to use some XPConnect functions that Mozilla browser supports, so I put a Javascript function in the main.html file as following: -------------------------------------------------------- function addXptr() { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var xptrService = Components.classes["@mozilla.org/xpointer-service;1"].getService(); xptrService = xptrService.QueryInterface(Components.interfaces.nsIXPointerService); var xptrString = xptrService.createXPointerFromSelection(window._content.getSelection(), window._content.document); alert(xptrString) } --------------------------------------------------------- I imported a certificate to the Mozilla browser. If I put main.html in a jar (li.jar!/main.html) file, then I can use the XPConnect function. But the problem is, since my application reads the main.html and then modifiy it and then submit this html file to the web browser, the file's content changes, so I don't know how to access the modified html file. Because if I sign the static html file with a certificate, I only can access the static html file, not the changed file. So I wonder is there a way to sign a remote application with dynamic html documents? Can I call XPConnect within a Java application? Thank you very much. Li Zhang _______________________________________________ mozilla-xml mailing list mozilla-xml@mozilla.org http://mail.mozilla.org/listinfo/mozilla-xml _______________________________________________ Jsconsole mailing list Jsconsole@mozdev.org http://mozdev.org/mailman/listinfo/jsconsole