Closed ArtistScope closed 11 years ago
Hi, Can you post a screenshot of your browser's network panel after waiting a few seconds? Have you override some settings?
Antoine
On 6/7/2013 5:10 AM, Antoine RICHARD wrote:
Can you post a screenshot of your browser's network panel after waiting a few seconds? Have you override some settings?
You can see what I am using here...
http://www.researchclass.com/test_server.asp
As you can see, it reports once only... nothing after that.
Best regards
William Kent
Copy protection secures your livelihood.
The onServerOnline callback is called only when your status changed from offline to online (or conversely from online to offline). The connection check occurs every 5 seconds but if your connection status hasn't changed, you won't be notified.
Is that behaviour OK for you ?
That being said, it seems clear that the README is not clear on this point. I'll update it shortly.
I need this to redirect to about:blank if the connection is lost.
I can do that with your script except that it is not regularly polling. For example when the page loads it runs a check and confirms that the user is indeed connected. But then when I disconnect from the Internet, nothing is reported.
On 6/7/2013 6:30 AM, Antoine RICHARD wrote:
The onServerOnline callback is called only when your status changed from offline to online (or conversely from online to offline). The connection check occurs every 5 seconds but if your connection status hasn't changed, you won't be notified.
Is that behaviour OK for you ?
That being said, it seems clear that the README is not clear on this point. I'll update it shortly.
— Reply to this email directly or view it on GitHub https://github.com/antoine-richard/jquery-server-observer/issues/6#issuecomment-19072025.
Best regards
William Kent
Copy protection secures your livelihood.
You should be notified if the connection is lost.
Chances are that the shop/ping.html response is cached by the browser. I tested with my browser cache disabled and it seems to work:
See this StackOverflow answer for disabling caching for ping.html.
On 6/7/2013 7:13 AM, Antoine RICHARD wrote:
You should be notified if the connection is lost.
Chances are that the shop/ping.html response is cached by the browser. I tested with my browser cache disabled and it seems to work https://f.cloud.github.com/assets/1552897/620772/934cdaf4-ceed-11e2-9f83-77780c95deb8.jpg
See this StackOverflow answer http://stackoverflow.com/a/1341133/243847 for disabling caching for ping.html.
Actually, this didn't make any difference. But it was a step in the right direction and I did get it to work by:
- changing ping.html to ping.asp
- add some content to the page that changes (like the system date/time).
Now it works! Thanks for your help.
Best regards
William Kent
Copy protection secures your livelihood.
You're welcome.
I have used the recommended code without any modifications, ie: JQuery 1.7 etc and the URL is set to "test.html"
When I load the page it reports that the URL iss "Connected" but does not repeat the test again. It runs once and stops.