SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Maintain a database on iPad using HTML5

    I have a client requirement to manage data locally on an iPad with no network connection, any advice would be welcome please…

    Constraints:
    1) No network connection when the iPad is out on site.
    2) Cannot install a native iOS app.

    Preferred wrapper:
    1) Locally installed HTML5 file.

    Requirement:
    1) The HTML5 page, presumably using JavaScript, must be able to save form data to the iPad on a button click event.
    2) The User needs a facility to subsequently upload the data to a central web server, either with network connection or by cable.

    What is the best way the achieve this ?

    Thanks very much..

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    What is the best way the achieve this ?
    TBH, I suspect there's no good way to do that on an iPad—at least offline. These are pretty limited devices. They are really for low tech folk to browse the web, read books and play games. The client is better off using a laptop like a Macbook Air etc.

    In the future, if iOS ever supports things like indexedDB, there may be some hope, but it sounds too ambitious right now, though I'm happy to be set straight.

    EDIT
    Web storage is supported in iOS, so perhaps that's an option: http://caniuse.com/namevalue-storage

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The best way to achieve this is an app, period end of story. The app could fundamentally be a html5 container for what it's worth.

    You could try and set something up where you could hit a web page and then use the html5 local storage options to cache data but you'd still need to reconnect to upload things. Good luck when a user hits the back button. Another implementation option would be to run the web server locally and handle it that way.

  4. #4
    SitePoint Wizard
    Join Date
    Apr 2007
    Posts
    1,401
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    1) No network connection when the iPad is out on site.

    I'm not sure what you mean here.... w/ no network how does it connect to db?

    Anyways, you should definitely consider to use ExtJS Touch to do the development.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •