Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6956225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:50:28+00:00 2026-05-27T14:50:28+00:00

How do I go about loading a splash to the user if they are

  • 0

How do I go about loading a splash to the user if they are offline? I want it to show after the initial loading image, I have a page called gone-offline.jsp but how to detect if user is offline on mobileinit?

I’m not using phone-gap

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:50:28+00:00Added an answer on May 27, 2026 at 2:50 pm

    You need to decide what offline means to your business scnenario. This may sounds silly, but it depends on what your app wants to do. For example:

    Does your app want to go offline when it is actually offline and can’t reach other websites, or does it want be in offline status when it can’t access your webservice.

    Assuming you want to test that there is no connection to your webservice I would recommend the following:

    1) Make an ajax call every x number of minutes to your webservice to check if it is still online
    2) make a common method that handles time outs if your application thinks its online and is offline.
    3) make it so that when your application is offline, it is trying to get back online in the background by doing a similar step to step 1.

    To do ajax with JQuery see: http://api.jquery.com/jQuery.ajax/

    Note that if you require cross domain json (you may or may not) then you will need to investigate CORS/JSON-P/XSS with iframes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read about dynamically loading your class files when needed in a function
I have an app which when opened, displays a splash/loading screen. I had this
How would I go about loading my own data onto the $user object upon
I have seen lot of threads about loading a PDF in Android Webview. But
This question relates to my previous question which asks about loading a page into
I have a splash screen that i am using it when i am loading
I guess this is very obvious, but I have a question about loading data.
How would one go about loading compiled C code at run time, and then
Please provide a good, thorough tutorial about Java class loading , focusing on how
Where can I find more information about GWT and GWT-Ext's lazy loading?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.