Opened 10 years ago
Closed 10 years ago
#14277 closed bug (duplicate)
JQuery SubmitData caching
Reported by: | mahesh_klp | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I am working on a website which is to be used on mobile browsers and also we have a Native app which loads the same URL as wrapper. We are using JQTouch(jQT), JQuery 1.4.4 and Ajax.
On one form, we have jQt.submitData(formid), which internally calls showPageByHref(href, options) from jqt.all.js.
On page 1, we have a input field and submitForm(), if any erorrs are thrown due to wrong userid, the errormessage is returned as response to Ajax call. But this is cached.
From next request, even if we try with correct userid or a blank userid, the form field values from first request are retained all the time.
I have already tried various ways to disable cache at AJAX level by using cache : false, but it didn't worked. I have also tried to call removeData(), flushCache methods to clean jQuery data, but it didn't helped.
Could you suggest how to fix it.
Duplicate of #14276.