Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Control the window
- From: peter at brunone.com (Peter Brunone)
- Subject: [Javascript] Control the window
- Date: Wed Aug 30 11:36:03 2006
> > The only real reason for this is that I do not want them to > > use the back button when the system have posted information, they then get > > the "page has expired" message. > I use the following line in each of my pages -- seems to work cross-browser > (IE6/Netcape/Firefox) and is exactly what the client wanted (not that I like > it myself!). > > window.history.forward(1); Will that even work if the page hasn't loaded because of the "Expired" message? Peter From: "Peter Lauri" lists@xxxxxxxxxxx Thanks mate, this works fine. However, it might not be the prettiest solution :) I will use that temporary, thanks for you insight! -----Original Message----- From: Glenn E. Lanier, II [mailto:glenn_lanier@xxxxxxxxxxx] > From: Peter Lauri > Sent: Tuesday, August 29, 2006 9:54 PM > The only real reason for this is that I do not want them to > use the back > button when the system have posted information, they then get > the "page has > expired" message. > How can I avoid this then? :) Peter, I use the following line in each of my pages -- seems to work cross-browser (IE6/Netcape/Firefox) and is exactly what the client wanted (not that I like it myself!). window.history.forward(1); It allows the back and immediately sets the visible page to the next one in history. Great thing is even if they select the drop-down next to back and go back 10 pages -- you see a slight flicker (on older (like mine) machines) as it flips through to the current page. --G -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060830/de7d33a2/attachment.html
- Follow-Ups:
- [Javascript] Control the window
- From: Glenn E. Lanier, II
- [Javascript] Control the window
- Prev by Date: [Javascript] Control the window
- Next by Date: [Javascript] Prevent expired POST results (Was: Control the window)
- Previous by thread: [Javascript] Control the window
- Next by thread: [Javascript] Control the window
- Index(es):