Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

meta tag refresh

Status
Not open for further replies.

lwfg

Programmer
Feb 9, 2009
52
0
0
US
If a user is changing values of text elements when a refresh happens, the changes are gone, replaced with the initial values that were in the text elements.

Can this be avoided - can the user changes not be overwritten during a refresh?
 
Yes Do Not refresh the page from withing HTML <meta HTTP-equiv="refresh"....>

if the page realy does have data that absolutly muts be refressed regularly consider using javascript & AJAX techniques to only modify the parts of the page that need changing.
 
IPGuru said:
if the page realy does have data that absolutly muts be refressed regularly consider using javascript & AJAX techniques to only modify the parts of the page that need changing.
Or to preserve the information as its being typed.

You could use onblur or onChange events of the elements to trigger a storing function when the elements have been edited and loose focus, or have changed.

Then On refresh repopulate the fields. You'll likely need cookies to store said information.

And of course there's always a chance the current element being edited will not be preserved.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hoping to be able to tell when an automatic refresh is done and check to see if a Coldfusion session variable had timed out and if so, redirect to a different cfm.

OnBlur, OnChange,etc for individual text elements might be bad-too many elements. Wish there were document.ondoanything to catch any activity, even a mouse moving anywhere on screen.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top