I developed a site that lets people respond to surveys using jquery. They choose an answer via a radio button, submit and a pop up loads a graph with the total # of responses to that question, including theirs, and a bar graph showing the % of results for each option.
There are 30 survey questions per page and, sometimes, when I answer one I notice that it is not loading my response. For instance, if a survey has 3 responses and I am the 4th, once I submit my answer the pop up loads the 3 responses prior to mine but doesn’t calculate the 4th
If I clear my cache it loads fine most of the time but, my question is, do you think it’s a cache issue?
Code Running The Show:
In this example, survey # 25 (which loads the results once
I make a choice and hit the button which has an id of upny_sresbtn_25)
(I only post it as sometimes it is requested that we do so)
In short, do you think making sure caching is eliminated would help ensure that all new votes would be displayed in the pop up? It appears MOST of the time, but not all…and it’s critical that the new votes appears in the ‘result pop up window’ all times. It works, in the sense that the graph works, the submission of the response works…it just doesn’t always load the latest snapshot after the vote and I wonder if jquery cache is the issue.
Thank you so much for your time, again…
PS. I must re-emphasize that 30 questions load per page and, once people start to submit responses, they usually do not refresh as it’s not required. So during tests I answer one after another without any refresh. What happens is the page calls the Jquery file and the code you see above does the work.
This is why I wonder if it is a cache issue…thanks again.