File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes jquery getjson ajax problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jquery getjson ajax problem" Watch "jquery getjson ajax problem" New topic
Author

jquery getjson ajax problem

vikas sharmaa
Ranch Hand

Joined: Jun 28, 2007
Posts: 191
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

Joined: Jun 28, 2007
Posts: 191
it was cache issue. i resolved it by appending epoch value in the request parameter as shown below:



Thank you.
 
GeeCON Prague 2014
 
subject: jquery getjson ajax problem