1
我用我網站中的一個對象替換了一個iframe,我使用jquery重新加載/刷新對象以顯示新內容,唯一的問題是我的代碼無法與Chrome瀏覽器一起使用!代碼工作在Firefox和ie,我嘗試不使用iframe,因爲鉻保持舊頁面緩存。無法使對象在Chrome中重新加載
下面是目標代碼:
<object id="safari_window" name="safari_window" type="text/html" data="index.html" onload="fixWebSite()" ><p>Your browser do not support object tag</p></object>
這裏是jQuery代碼:
$('dd ul li').click(function(){
$.post("editor_func.php", { menu: $(this).attr('id'), d: $('#d').val(),}, function(){
$('#safari_window').attr('data', function (i, val) { return val; });
});
})
感謝您的幫助!
不解決對象問題,但由於iframe的問題解決! – user1031295 2012-01-30 01:03:25