Re: Disable alert dialog?

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
[email protected] wrote:

>I have written a small XUL application, which loads some html files from disk, and extracts the text from some DOM nodes.
>The problem is that when something is not found (i.e. the page references something like "/scripts/..."), xulrunner issues an alert that a file was not found. I have added some code to press the "ok" when alerts appear, which mostly works, but not always. Sometimes, the alert remains there, blocking my application until I manually press the ok buttons.
>
>So, my question is: how can I disable this kind of alerts completely?
>I don't want an alert to show up when a file was not found, when I am loading a saved html page from disk...
>
Would an error page do? Set browser.xul.error_pages.enabled to true.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.