Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax Calls not refereshed.

 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic