Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jquery getjson ajax problem  RSS feed

 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!