PHP - IE不显示数据库中的更新值。 Chrome,FF,Opera - 好的 [英] PHP - IE doesn't display updated values from database. Chrome, FF, Opera - OK

查看:142
本文介绍了PHP - IE不显示数据库中的更新值。 Chrome,FF,Opera - 好的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个处理学生课程要求的系统,教师会根据这些要求提交答案。有一个包含新请求的列表框,当单击列表框中的选项时,request_id(listbox.this.value)通过AJAX查询数据库,查询结果显示在客户端 - 学生信息等。教师只需键入他的在指定的字段中回答,并且有一个更新查询,用一个答案更新数据库。但是稍后我点击列表框中的相同项目 - 显示所有数据(学生信息),但更新的信息(教师答案)除外。再次 - 它只发生在IE上。所有其他浏览器都没问题。

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.

提前致谢。

推荐答案

<我怀疑IE正在缓存对初始AJAX请求的响应。您可以尝试将时间戳附加到请求作为GET参数,这将强制IE发出新请求。

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.

这篇关于PHP - IE不显示数据库中的更新值。 Chrome,FF,Opera - 好的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆