ajax problem

A

arvind

hi all,

i am working on java-jsp-ajax application and using MS-SQL database.
when i do any update operation using front screen(in html),it gets
updated in the database but it dosen't show those updates in the
front end.


THE UPDATES ARE SEEN ONLY WHEN THE "EVERY TIME VISIT TO THIS PAGE"
option in "Tools /Internet Options /Settings " of the toolbar is SET.
OR ELSE I HAVE TO CLOSE THE BROWSER AND THEN OPEN A NEW ONE TO GET THE
UPDATES .


i can never know what option my client has set on his terminal.


what could be solution so that my code will be independent of the
internet setting?
please help me out as i am in a great hurry!


thank you.
 
G

Greger

arvind said:
hi all,

i am working on java-jsp-ajax application and using MS-SQL database.
when i do any update operation using front screen(in html),it gets
updated in the database but it dosen't show those updates in the
front end.


THE UPDATES ARE SEEN ONLY WHEN THE "EVERY TIME VISIT TO THIS PAGE"
option in "Tools /Internet Options /Settings " of the toolbar is SET.
OR ELSE I HAVE TO CLOSE THE BROWSER AND THEN OPEN A NEW ONE TO GET THE
UPDATES .


i can never know what option my client has set on his terminal.


what could be solution so that my code will be independent of the
internet setting?
please help me out as i am in a great hurry!


thank you.
what happened when you tried the approach jasons recommended to you
yesterday?
 
A

arvind

hi Greger,
i tried Jason's solution.
but, the problem is still not solved.
the values retrieved are the older ones.
please send some solution.
 
N

None

Are you POSTing or GETing? Especially in IE, if you GET, it caches a
bit too aggressively. Either do a POST, which is never cached, or
append some dummy parameter to your query string, say new Date(), so
that the URL requested is always unique. I don't know if this is the
problem your seeing, but this is a common thing that trips people up
when they first work with AJAX.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top