Results 1 to 9 of 9

Thread: ASP.Net jQuery web app - disconnected?

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    ASP.Net jQuery web app - disconnected?

    I've got a web app that uses jQuery/JS logic on the page to ajax post data to ASP.Net web methods.

    What options do I have for moments when the user might be disconnected from the internet - out of touch with those web methods?

    Where can I store data locally?

    How about if it's an iPad device? What options do I have with a device like that??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: ASP.Net jQuery web app - disconnected?

    Cookies. Or the [relatively] new web storage. I don't think iDevices are significantly different in this case (assuming you're accessing the app from a browser in either environment).

  3. #3

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: ASP.Net jQuery web app - disconnected?

    Do cookies have limits on the amount of data? Or do I simply spin up another cookie once the limit is reached??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: ASP.Net jQuery web app - disconnected?

    Some pertinent info on cookie restrictions (probably still valid). They're not really intended to hold large amounts of data.

  5. #5

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: ASP.Net jQuery web app - disconnected?

    Yeah - I found that link. Seems cookies are a good way to go for small amounts of data - like current "cart" for shopping sites.

    That makes sense for me as well - I do not believe I have that much data. Just wanted to make sure I was going down a good path.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  6. #6
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: ASP.Net jQuery web app - disconnected?

    Perhaps it goes without saying, but I wouldn't try to make a web app that functions seamlessly without the web; a simple "sorry, can't connect; try again later" notice may be preferable in many cases.

  7. #7

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: ASP.Net jQuery web app - disconnected?

    They might drive me towards writing a "local" HTTP listener so I can do a more seamless and full-like "experience".

    Options are to have 3g/4g setups on all traveling iPads - that's hardware $$'s and ongoing subscription fees - I'm a one time cost

    At least PPC's could run MS SQL CE - I have no idea what an iPad can have for a DB!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  8. #8
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: ASP.Net jQuery web app - disconnected?


  9. #9
    Banned
    Join Date
    Apr 2012
    Posts
    6

    Re: ASP.Net jQuery web app - disconnected?

    oh uWell thanks you

Posting Permissions

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



Click Here to Expand Forum to Full Width