Ajax: Tackle the Refresh Button
One of the problems that an Ajax application faces is the refresh button. Person hits it and all of the Ajax inputs have been wiped clean. Well I thought that I would point you to an article I wrote. It talks about taking the issue of the refresh button away from an Ajax application. You can find the article with a working example here:
http://www.pascarello.com/rememberHistory.aspx
Eric Pascarello
Moderator of HTML/JavaScript at www.JavaRanch.com
Co-Author of: Ajax In Action
TrackBacks[0]
Comments[7]
Posted by pascarello on October 27, 2005 4:08:54 PM EST
Reply |
Permalink
Re: Ajax: Tackle the Refresh Button
Hi Eric
This is great work and needed in AJAX.
Just some feedback :
In Safari you can't use the refresh button it doesn't seem to think the page is finished.
It is fine on Firefox on the Mac however
regards
Al
Comment from Al on October 28, 2005 4:43:58 AM EST
I had this tested with a number of MAC users and they said they were having no major problems with this method.
Eric
Eric
Comment from Eric Pascarello on November 9, 2005 9:44:56 AM EST
I want to appreciate your coding style of your javascript file net.js
Its so cute and elegant.
You should apply for a job in Google. They will like your creativity.
Comment from Balaji - Javaranch on October 31, 2005 6:02:18 AM EST
i am using a div tag that pulls in a php page with data from mySQL...in IE on a PC, the page won't show any changes made to hte mySQL database...i'ev tried to put a refresh script on the php page, so that you can clikc a link to refresh the page within hte DIV tag, however it still won't work on a IE PC... any thoughts?
Comment from Anonymous on March 14, 2007 10:51:53 AM EST
The request is cached. Add a request header.
xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
Eric
Comment from Eric Pascarello on March 14, 2007 12:17:41 PM EST
I had that refresh problem in IE, but not in FF. I changed my Ajax transfer request to post method instead of get
Comment from JOrdan on March 20, 2007 3:45:28 PM EST
hf f hhfd
Comment from Anonymous on April 25, 2007 1:54:51 AM EST
TrackBack to http://radio.javaranch.com/pascarello/addTrackBack.action?entry=1130447334299