Re: [問題] hash 要如何被ie記錄?
※ 引述《KiroKu ()》之銘言:
: 如題,
: 當利用location.href=lct+"#"+page_id;//lct 是處理過的網址
: fx 可以去把它記成一頁,方便坐上一頁的處理
: 在ie卻不行?有沒有可以讓ie記下的方法?
用iframe 的href作hash...
這是jquery.history plug-in中的程式碼片段 , 可以參考一下iframe的部份.
(ihistory是頁面預先作好的iframe物件 , 其他的部份都可以用純js實做.
newhash是希望要記錄的hash.
if(jQuery.browser.msie) {
var ihistory = $("#jQuery_history")[0];
var iframe = ihistory.contentWindow.document;
iframe.open();
iframe.close();
iframe.location.hash = newhash;
}
--
What do you want to have ? / What do you have?
從書本中,你可以發現我的各種興趣。
從CD中,你可以瞭解我所喜歡的偶像明星。
或許從文字你很難以瞭解一個人,但從物品可以。
My PPolis , My past. http://ppolis.tw/user/Tony
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.40.10
推
08/30 21:12, , 1F
08/30 21:12, 1F
→
08/30 21:12, , 2F
08/30 21:12, 2F
→
08/30 21:46, , 3F
08/30 21:46, 3F
→
08/30 21:48, , 4F
08/30 21:48, 4F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章