PHP - IE doesn't display updated values from d

2019-08-07 00:55发布

问题:

I'm working on a system that treats student course requests and teachers submit answers on those requests. There's a listbox that contains new requests, when clicked on an option item in the listbox, request_id (listbox.this.value) is querying the database via AJAX and query results are displayed back on client - student info etc. The teacher simply types his answer in an designated field and there's an update query that updates the database with an answer. But when later I click on the same item in the listbox - all the data displayed (student info) except of the updated info (teacher's answer). Again - it only occurs with IE. All rest of the browsers are fine.

Thanks in advance.

回答1:

I suspect that IE is caching the response to the initial AJAX request. You can try appending a timestamp to the request as a GET parameter which will force IE to issue a new request.



回答2:

If in some browsers you get results, and on IE you dont its not server side /php/ problem. I think you have the well known issues with IE and ajax /speccialy XMLHttpRequests/ Just look at the IE version, google the problem and you will get the solution. PS: Use when possible jquery ;-)