Luis, It is possible to prevent the back button from becoming active in certain cases. The way to do this is use the javascript function:
location.replace(theURL) Where theURL is the new page you want to navigate to. For example, if a user bookmarks your application and loads it they will initially have the back button dimmed out. If you have the following HTML link which takes them to the apple homepage the back button will still remain dimmed out. <a href="http://www.apple.com" onclick="location.replace(this.href);return false;">Apple.com</a> What you are doing is replacing the current page stored in the history object with the new page you are navigating to. To see this code in action check out the post from my coworker about beta testers for our MLB iPhone application. - John Kramlich On Jul 9, 4:28 am, Luis Oliveira <[EMAIL PROTECTED]> wrote: > Hi all, > > I would like ti know if there is any way to prevent the user to > disable back button on an iPhone webapp or force Safari iPhone to do a > request to the server whenever the user click on back button (instead > of using the browser cache). > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
