I had a short interruption to internet service today and my webconnect apps stopped working even after connectivity was restored. In the test app I got the message:
"This document cannot be displayed while offline. To go online, uncheck Work Offline from the File menu."
I could needed to download a new copy of xulrunner and overwrite the old one that is now hardwired to run in offline mode.
Somewhere there must be a way to do this programmatically. Does anyone know how?
Regards,
Robin
(n.b. this was for the Linux version, not sure if the same thing happens in Windows)
Kirix Support Forums
How to switch xulrunner back to work online
3 posts
• Page 1 of 1
How to switch xulrunner back to work online
Last edited by rbalean on Fri Sep 28, 2012 10:00 am, edited 1 time in total.
- rbalean
- Registered User
- Posts: 4
- Joined: Thu Sep 13, 2012 3:12 am
Re: How to switch xulrunner back to work online
I have a partial workaround. I found the following setting in xr/greprefs/all.js
If I edit this to
then I can bring my dead offline version of xulrunner back to life. Note that this is set to false even in the running version so this is still not the definitive setting.
Also, there is a setting
in the same file but this was already set to true so cannot have been causing the problem.
Hopefully this should prevent it from switching to offline mode if this happens again (though my app would still need a restart in order to read settings again when xulrunner is initialized).
I'd still prefer to find a way to do this programatically though.
Regards,
Robin
- Code: Select all
// should NetworkManager be authoritative for online/offline status?
pref("toolkit.networkmanager.disable", false);
If I edit this to
- Code: Select all
// should NetworkManager be authoritative for online/offline status?
pref("toolkit.networkmanager.disable", true);
then I can bring my dead offline version of xulrunner back to life. Note that this is set to false even in the running version so this is still not the definitive setting.
Also, there is a setting
- Code: Select all
pref("network.online", true); //online/offline
in the same file but this was already set to true so cannot have been causing the problem.
Hopefully this should prevent it from switching to offline mode if this happens again (though my app would still need a restart in order to read settings again when xulrunner is initialized).
I'd still prefer to find a way to do this programatically though.
Regards,
Robin
- rbalean
- Registered User
- Posts: 4
- Joined: Thu Sep 13, 2012 3:12 am
Re: How to switch xulrunner back to work online
I do know that you can set this preference programatically. We also had to set some preferences and didn't want to edit all.js, so we simply set the NS preference programatically.
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
3 posts
· Page 1 of 1
Return to wxWebConnect Questions, Thoughts & Feedback