Hello
Im new to iUI and Im having a hard time working with the backButton
(past the default behavior of going back to the previous "ul").
I'd like to have a "root" (or initial) page that shows a back button
and have this button take me to another page.
The idea is that Im navigating to my iUi pages from another page, so I
want the user to be able to go back using the backButton.
I was able to show the button on the inital screen by altering the
iui.js (probably not the best choice, but Im quite new to JS. I guess
the best option would be to define some page attribute in addition to
this code), like this:
if (backButton)
{
var prevPage = $(pageHistory[pageHistory.length-2]);
if (prevPage && !page.getAttribute("hideBackButton"))
{
backButton.style.display = "inline";
backButton.innerHTML = prevPage.title ? prevPage.title
: "Back";
var bbClass = prevPage.getAttribute("bbclass");
backButton.className = (bbClass) ? 'button ' + bbClass
: 'button';
}
else
{
//backButton.style.display = "none";
backButton.style.display = "inline";
backButton.innerHTML = "Home";
backButton.className = 'button';
}
}
However I wasn't able to make this "initial back button" do anything
at all.
How can I get this behavior?
Thanks in advance
Gonso
--
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.