Solved

form submit

Posted on 2014-10-10
3
221 Views
Last Modified: 2014-10-13
I have a form which have n number of buttons. When The button is clicked its update the database and redisplay the page. For some reason the form is not being updated. However, the database reflect the change. When I dump the query I do not see it being updated if I refresh the page then it works. ALso the query is not cached
0
Comment
Question by:erikTsomik
  • 2
3 Comments
 
LVL 28

Expert Comment

by:Pravin Asar
ID: 40374411
Just from the problem description you posted, it is not clear how the form is being refreshed.

I get, after form is posted --> data is updated.

Are you querying the data, after refresh to fill-up/render the form ?
0
 
LVL 28

Assisted Solution

by:Pravin Asar
Pravin Asar earned 250 total points
ID: 40374413
Just try to clear the cache after each load.

<cfheader name="Expires" value="#GetHttpTimeString(Now())#">
<cfheader name="Pragma" value="no-cache">
0
 
LVL 25

Accepted Solution

by:
dgrafx earned 250 total points
ID: 40377919
you probably need to send in a cache breaker in your url
for ex if your url is /somefolder/somefile.cfm?whatever=fictionalvalue then add &dummy=#CreateUUID()# to the url so it's /somefolder/somefile.cfm?whatever=fictionalvalue&dummy=#CreateUUID()#

if that doesn't work just post back your block of script that is being used to submit the form
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question