The server I am working with is very very basic. Funny you mention
iui's page history because I was just about to post that I came up
with a solution by manipulating the pageHistory array. It required me
to modify the window.iui and add a function so I could access the
array. I generally do not like to modify libraries I am working with
for the obvoius updating and maintaining reasons, but this was just a
slight addition not a real modification.
Here is basically what I did:
1. Added the following to window.iui
popPageHistory: function()
{
pageHistory.pop();
}
2. Then in my code
$('new').setAttribute('title', $
(glink.hash.substr(1)).getAttribute('title')); // this keeps my page
title
$('new').appendChild(fds); // fds is a fieldset object built earlier
in the function
iui.showPage($('new'),backwards);
iui.popPageHistory(); // this corrects my history issue
$(glink.hash.substr(1)).id = 'old';
$('new').id = glink.hash.substr(1);
$('old').innerHTML = '';
$('old').id = 'new';
It all works great now :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---