I have a problem with my setup of Prism and local tomcat (accessed via
http://localhost:8083/my.app). Everything works fine untill I unplug my
network cable. Then I get an error message that the Server does not
respond when I try to load a page (or enter data in a field validated
via AJAX). When I plug it back in, everything works fine again. I can
only reproduce this problem in standalone Prism, not with Firefox or IE.
I got Prism to work when disconnected on startup by including the
following lines in my webapp.js, thanks to help on #prism:
> var ioService = Cc["@
mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
> ioService.offline = false;
But when I disconnect while running, I get the problem described above.
Is there a way to permanently keep Prism online? I only use it for the
app running on localhost, so I don't really want it to react to any
network interfaces being unplugged...
Thanks in advance for any help,
Daniel