| Author |
Ajax Calls not refereshed.
|
carina caoor
Ranch Hand
Joined: Jun 23, 2007
Posts: 300
|
|
Hi i have a form with certain input fields,radio buttons and submit buttons when i select a radio button value then the input fields get populated, on clicking update button the input fields data can be modified & when user inputs value it get updated in the database on click of submit button and my javascript code is after inserting new data i am calling getPlotnumbers again here the servlet which i am calling is not getting called and it is not requering from the database to get the updated value it still shows me the old value not the refreshed one. Anybody please help me out with this. [ September 10, 2008: Message edited by: ruquia tabassum ]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
GETS are made to be cached. If you insist on using GET, put this after your open call: Eric
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56190
|
|
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information. You can go back and change your post to add code tags by clicking the .
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
carina caoor
Ranch Hand
Joined: Jun 23, 2007
Posts: 300
|
|
I added the code but still the get request is getting cached and its not presenting the refreshed data, i managed to add new Date().getSeconds() at the end of the servlet url but still the gets are cached, please suggest me something, or my code is wrong somewhere?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Did you clear your cache on your browser to make sure you have the newest code. Are you setting no-cache headers on the page that you are requesting. Eric
|
 |
 |
|
|
subject: Ajax Calls not refereshed.
|
|
|