作者olliwang (小崇)
看板Web_Design
标题Re: [问题] 笨IE
时间Thu Feb 1 10:07:04 2007
Yes, it's a cache issue in IE. I happened to this issue before too,
when I used AJAX. The trick is incredible easy. You just need to pass
an argument with an unique value. For example, in AJAX I passed a datetime arg.
i.e.
var get_time = function () { return new Date().getTime() }
d = loadJSONDoc("./save", {
'uid': get_time()})
See? The uid arg gets different value every time you request. So IE won't treat
them as cache. I am not familiar with flash, but I think the trick is all the
same. Please let me know if everything is hunky dory. ;)
※ 引述《pm2001 (对不起谢谢再见)》之铭言:
: 最近写一个东西
: 流程大约如下
: 页面1
: 用表单选择好变数数值用post送到页面2
: 页面2
: 最上层用php读取变数後写入资料库再开始<html>....
: 里面加入一个flash用读取外部变数把刚才写入的东西抓出来
: 用fx完全没问题
: 可是用IE他就自以为聪明已经抓过了
: 也就是说不会去跟伺服器要资料变成不管怎麽按值都不会变,也不会写资料进资料库
: 这个应该怎麽解决
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.56.139.76
※ 编辑: olliwang 来自: 61.56.139.76 (02/01 10:22)