Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jquery getjson ajax problem

 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have used jquery ajax functions to implement chat application. now, i want to update my chat window every second. so, i have written below javascript code:



even though updateChat is getting called every second.. but server call to chat/update.htm is getting called only first time. please tell me, where i am going wrong?
 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was cache issue. i resolved it by appending epoch value in the request parameter as shown below:



Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic