0

I need to build an application to run inside a web browser that works offline (whitout any internet connection) and store data in a way that I can after with internet connection be able to upload these data to a server.

for example for example an HTML form

<html>

<body>

    <form>

        Name: <input type="text" name="name" /><br />
        E-mail: <input type="text" name="email" /><br />

        <input type="submit" name="save" />
    </form>

</body>

so when I submit this form the browser saves the data somewhere and when I be connected I can upload it to a server...

do anybody knows a way to do that??

2
  • 2
    thanks for explaining what offline means Commented Sep 7, 2012 at 16:21
  • hehehehe.. i only wanted to be really clear kkkk Commented Sep 7, 2012 at 16:27

2 Answers 2

2

Use local storage to save offline data. You can use AJAX (jQuery makes it easy: see here) to try to post the local storage data to your server. You may want to set an interval to post to the server.

Sign up to request clarification or add additional context in comments.

2 Comments

the problem is that i need more than 5MB =(
The browser can prompt the user requesting more space for your app once you use up the default allocated space.
0

Saving to local storage (in browsers that support it) and then syncing with a web server is how I would do it.

The real problem here is that browsers were not really build for that so you'll need to find some clever solutions and also would only work in modern browsers.

A native application might be a better way to go.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.