Search code examples
iphonehtmlsafarimobile-websitewml

WML-like solution for 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?


Solution

  • 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:

    http://iui.googlecode.com/svn/tags/REL-current/samples/music.html

    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.