具有多个html文档的HTML5应用 [英] HTML5 app with multiple html document

查看:35
本文介绍了具有多个html文档的HTML5应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家,

我已经制作了一个iPhone网络应用程序.我已经使用了html5,java脚本和jqueryMobile.
我的应用程序由单个 Index.HTML 文档组成.工作正常.

我想做的是对它实施身份验证.由于HTML5,Java脚本甚至j-Query mobile是客户端语言,因此我无法与服务器通信.

传统的经典ASP方法,建议我采用GET/POST方法.但是在我的情况下它失败了,因为当我尝试打开asp或其他HTML文档之类的其他页面时,它在浏览器中打开,而不是在我的应用程序中打开.

如您所知,Web应用程序在后台使用浏览器,但是由于它是Web应用程序,因此我无法在浏览器中打开下一页,因此它应保留其本机应用程序外观".

HTML5,Web sql中有新事物,但是我不想在客户端上创建这样的数据库,这会导致我不得不对服务器进行任何操作.

我已经尝试了很多方法,但是找不到从服务器或客户端对iPhone中的html5应用进行身份验证的任何方法.


任何人对此都有想法吗?如何解决呢?我如何在单个html5应用程序中添加多个HTML文档?

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?

推荐答案

我认为OAuth是解决您的问题的方法.但是也要寻找其他答案.请参阅此链接进行类似的讨论- http://stackoverflow.com/questions/10355699/how-do-mobile-html5-apps-use-the-oauth-2-protocol [
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[^]


这篇关于具有多个html文档的HTML5应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆