Two Laptop Bag*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jquery getjson ajax problem" Watch "jquery getjson ajax problem" New topic

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.
I agree. Here's the link:
subject: jquery getjson ajax problem
Similar Threads
getting a name in jsp page using account number on same page
ajax in spring 3.0
how to call javascript function on body load using jquery
AJAX-JQuery-Struts getJSON function data issue