CiUI (CNET iPhone UI) is a web framework that mimics iPhone UI behavior. It’s already being used on CNET’s iPhone page (http://iphone.cnet.com). It’s been greatly inspired by iUI with a few key differences:
1. AJAX calls are performed after a page slides
2. DOM doesn’t get overloaded with “pages” as they load. Instead, two DIVs are constantly being reused
3. Page titles are set on the source page, not on the destination page
4. Only specified “a” tags are assumed a part of the UI
CiUI home page.
Note: In order to get CiUI to work on the latest version of Safari and the iPhone, I needed to change the getResponse() code to read like this:
function getResponse() {
if (this.readyState == 4)
if ((this.status == 200) || (httpRequest.status == 0)){
if (responseType == "XML")
responseConsumer(this.responseXML);
else
responseConsumer(this.responseText);
httpRequest = null;
}
else
;//console.log("There was a problem with the request: " + sourceUrl);
}
For some reason, the httpRequest object was not connecting. So I just changed httpRequest to this in the code.
This is probably a terrible hack, but it seems to fix the problem for now.
'