Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML forms working offline

Tags:

html

offline

I need to be able to run HTML forms offline. I mean they have to work without direct connection to the web server.

In an application I wrote over 5 years ago I did it by implementing a custom protocol handler - when a user initiated form submit the resulting HTTP request was recorded locally. At later time when a connection to the server becomes available a synchronization program loops through collected requests and submits them to the server collects the responses and again saves them locally for later use.

That was then. Now another customer approached me with a very similar request. What technology do you guys think I should use today?

Support for HTML5 is very limited just yet. Google gears? Or should I go back and continue using the protocol handler and custom synchronizer?

like image 994
mfeingold Avatar asked Nov 26 '09 21:11

mfeingold


People also ask

Can you use forms offline?

Google forms can also be used to performs field surveys considering your device always has internet connection in order to collect data. With this app you can use your google forms offline. Though this app is simple to use you will need some do some steps to integrate this app with your forms.

Do Google forms work offline?

Unfortunately, you cannot work offline on Google Forms. However, Jotform is the perfect tool for collecting data offline and online. Jotform is a form builder that comes with many advanced features compared to Google Forms. You can build forms, customize them, collect data, analyze data, and more.

What is offline form?

The Offline Forms feature allows your team to collect important information while at a conference or out in the field. Accessible. Let users collect offline form submissions from any location. No internet connection, Wi-Fi, or LTE data usage needed! Integrated.


2 Answers

I'd say go for HTML5. Not all browsers support it; but all will. In the meanwhile, i think it's better to say "to get offline features try such or such browser", instead of "please download this huge plugin with lots of scary warnings".

Also a simple demographics: HTML5 is in what, 5% of all browsers? 10%? still a lot more than the 0% of users with Gears already installed.

It's a real pity, thanks a lot Google for pushing the envelope with Gears; but in the wild the only plugin generally accepted is Flash. Fortunately, HTML5 is almost there already, with nearly the same features.

like image 131
Javier Avatar answered Oct 20 '22 01:10

Javier


Google Gears is a very good candidate - as an example, Google recently just announced that users would be able to attach files to emails while 'offline'. Another method might be to store the posted form data in a cookie, and when the user is able to get back online the server picks up the cookie and data with it.

like image 35
Joshua Avatar answered Oct 19 '22 23:10

Joshua