Incorrect Field Value

I have a web application with an editable text field which is hidden when read and a computed for display field which is set to the value of the editable field and it is set to hide when editing.

When I enter a value in the field (e.g ABC)and save the document it all works fine, I then go in and edit the field (e.g. DEF) and save.  When I open up the modified document in read mode it displays the correct value (i.e.DEF), when I then place the document into edit mode it refers back to the old value(i.e.ABC).

I have tried placing the default value of the name of the field but still no joy...Please help it is driving me mad!!!
fayebAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CRAKConnect With a Mentor Commented:
Sounds like browser-side caching.
Try (MSIE): Tools > Internet Options, tab "General", under "Temporary internet files": Settings. Select "Every visit to a page".

If that solves your problem, we (EE community) should find you code (for the META tags) to avoid pages from getting cached.
I tried to keep them out of the temporary internet files-dir. but that appeared impossible. Keeping them from showing old data can be done, but I haven't got the proper code around now.

Anybody?
0
 
fayebAuthor Commented:
I found the code....

"<META HTTP-EQUIV=\"pragma\" CONTENT=\"no-cache\">"+  @NewLine +
"<META HTTP-EQUIV=\"expire\" CONTENT=\"0\">"

Cheers
0
 
HemanthaKumarCommented:
Include this in html head content section of ur form
"<META HTTP-EQUIV='Expires' Content='0'>"

~Hemanth
0
 
CRAKCommented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.