看板 Web_Design 關於我們 聯絡資訊
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)