适用于 iPhone 的类似 WML 的解决方案
我们正在开发一个可以通过手机访问的网络应用程序。
它涉及一个简单的纯文本树目录。
为了避免在单击树项目时与服务器进行额外的往返以展开树项目,我决定使用 WML
。
它允许在一个文档中预加载多个
,并在这些
之间快速浏览。
但是,iPhone
根本不支持 WML
,并且其他移动浏览器也存在多个问题。
是否有一种技术可以将多个页面加载到 iPhone 的浏览器中并在它们之间进行浏览,而无需与服务器进行额外的往返?
We are developing a web application that should be accessible from a mobile phone.
It involves a simple text-only tree catalog.
To avoid extra round-trips to the server to expand the tree items as you click on them, I decided to use WML
.
It allows preloading multiple <card>
's in one document and fast browsing between these <card>
's.
However, iPhone
does not support WML
at all and other mobile browsers have multiple issues with it.
Is there a technology that allows loading multiple pages into iPhone
's browser and browsing between them without extra round-trips to the server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它与 WML 并不完全相同,但 Joe Hewitt 的 iUI 是根据完全相同的想法开发的预加载不同页面对应的不同
,并方便它们之间的导航。
这是一个例子:
查看源代码,了解每个
或
实际上是一个不同的页面。 您还可以使用 AJAX 动态添加页面。
It's not exactly the same as WML, but Joe Hewitt's iUI was developed on the very same idea of preloading different
<div>
's corresponding to different pages, and facilitate navigation between them.Here is an example:
Look at the source code in order to see how each
<div>
or<ul>
is actually a different page. You can also dynamically add pages using AJAX.如果您只为 iPhone 开发网站,我会推荐优秀的 jQTouch jQuery 插件。 它允许您将页面存储在单独的 div 标签中,然后在它们之间导航而无需刷新页面。
If you are developing the site only for the iPhone I would recommend the excellent jQTouch plugin for jQuery. It allows you to store pages in seperate div tags and then navigate between them without refreshing the page.
我认为一个技巧是加载一个 320px 宽的 div 页面,并通过 Javascript 让它水平滚动。 您可以让 iPhone 隐藏水平滚动条。
I think one trick is to load a page with 320px wide divs and have it scroll horizontally via Javascript. You can make the iPhone hide the horizontall scrollbars.
Tiddlywiki 有用吗?
据我所知,您可以使用 tiddlywiki 的“tiddlers”方面来显示/隐藏少量网页内容,而无需访问服务器?
Would a Tiddlywiki work?
As far as I know, you can use the 'tiddlers' aspect of a tiddlywiki to show/hide small amounts of web content without having to make trips to the server?
我还不能投票,但我确实查看了链接文本,它非常棒。 我正在研究类似的屏幕原型设计,但我并没有将 2-and-2 放在一起来看看它的实际用途。
对格式错误的链接的澄清:我指的是 CSS 的 iUi 链接,它使用适当的插图创建 div 部分,使 Web 内容看起来好像是由 iPhone 应用程序生成的。 这是对端到端解决方案的很好补充。
如果可以的话,我会竖起大拇指...
我还将查看 jQTouch 插件 jQuery,因为这可能是获取许可内容的更专有的方式。
I can't vote yet, but I did check out link text and it is awesome. I was working on something like that for screen prototyping, but I did not put 2-and-2 together to see its practical utility.
Clarification on the mis-formed link: I was referring to the iUi linkage for the CSS that creates div sections with the appropriate artwork to look as if the web content is generated by the iPhone Application. This is a great complement to an end-to-end solution.
I vote with both thumbs up if I could ...
I will also check out the jQTouch plugin jQuery as that may be a more proprietary way to go for licensed content.