Re: application update

2006-05-22 Thread John Bandhauer
Kate X wrote: Thanks John, I've solved this problem by explicitly call: this._request instanceof Components.interfaces.nsIJSXMLHttpRequest; before assign the event handler. Yes, that will have the same effect as QueryInterface to tell xpconnect to discover that the object implements that

Re: application update

2006-05-19 Thread Kate X
Thanks John, I've solved this problem by explicitly call: this._request instanceof Components.interfaces.nsIJSXMLHttpRequest; before assign the event handler. now I can download the mar file, but it seems the installation doesn't happend automatically, the update.status is changed to pending,

Re: application update

2006-05-16 Thread John Bandhauer
Kate X wrote: After a couple of days of debugging , I am able to start the update service when application startup, but during the checkForUpdates, when trying to open xmlhttprequest for update.xml, I got this error: JavaScript Error: "[Exception... "Cannot modify properties of a WrappedNative"

Re: application update

2006-05-16 Thread Kate X
After a couple of days of debugging , I am able to start the update service when application startup, but during the checkForUpdates, when trying to open xmlhttprequest for update.xml, I got this error: JavaScript Error: "[Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80

application update

2006-05-12 Thread Kate X
Hi there, Here we have developed our own plugins, I want to use the updateservice to check the updates of our plugin, how should I do? The implementation is in javascript nsUpdateService.js, but when I try to get it I got missing xulruntime error. Anyone could give me a lead on this? Thx, Kate