Click here to Skip to main content
11,581,510 members (64,268 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript jQuery HTML5
Dear expert,

I have made an iPhone web app. I have used html5, java script and jqueryMobile.
My app is consist of single Index.HTML document. Its working fine.

What I want to do is to implement authentication for the same. Since HTML5, java script and even j-Query mobile are client side language, I am failing to communicate with the server.

Traditional classic ASP apparoach, suggest me to go for GET/POST method. But its get failed in my scenario,because the moment I tried to open other page like asp or even another HTML document, it get open in the browser, not in my app.

As you know the web app uses the browser in background, but since its a web app I can't afford to open my next page in browser, it should retain its "native app look".

There is new thing in HTML5, web sql but I don't want to create such database on client side cause any how I have to make hit to server.

I've tried lot of things but couldn't find any way for authentication for html5 app in iPhone from server or client side.


Any body has any idea about it? How to solve this ? How could I add more than one HTML document in single html5 app?
Posted 10-Oct-12 0:11am
comred1.2K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I feel OAuth is the way to go in your case. But look out for other answers too. Refer to this link for a similar discussion - http://stackoverflow.com/questions/10355699/how-do-mobile-html5-apps-use-the-oauth-2-protocol[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 340
1 Sergey Alexandrovich Kryukov 160
2 virusstorm 114
3 Frankie-C 105
4 RyanDev 84
0 OriginalGriff 1,273
1 Sergey Alexandrovich Kryukov 895
2 Abhinav S 597
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100