tags:

views:

35

answers:

2

hi , i am using jquery stars plugin and asking users to rate . the form works well,but caching has become a big problem. even after refresh of the page .it does not show the latest ratings . only after i clear the cache new ratings gets showed.

A: 

how are you getting the rating from the server? Try throw a random number or the current time in the get request.

Jon List
its just the number value from the mysql table which i am fetching and displaying as stars.
pradeep
+1  A: 

Hey,

may be its due to issue in jquery cache

$.ajax({ url: "test.html", cache: false, success: function(html){ $("#results").append(html); } });

set cache to false will work fine.

Thanxs, Gobi

Gobi