|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Catch the "Server not found" Event/Exception
Hi,
I have a simple xul app which loads a url and writes the contents to a file. I use the "DMContentLoaded" event to trap the end of document load as detailed below. This works fine but when I give an invalid url like "http://icio.us", i get a "server not found" popup which is the correct behaviour. How do I trap this event/exception and handle it graciously in my code? function browserLoaded() { // save the document to a file } var browser = document.getElementById("browserId"); browser.addEventListener("DMContentLoaded", browserLoaded, false); browser.setAttribute('src', url); Thanks, Irfan dev-tech-xul mailing list dev-tech-xul (AT) lists (DOT) mozilla.org |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Mozilla > Catch the "Server not found" Event/Exception |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|