2009-10-23 129 views
2

你好,我在開發的Joomla網站的網站工作正常在Mozilla,Safari和Chrome,但我在Internet Explorer使其它提供了以下錯誤。Internet Explorer的問題

請賜教這個.....

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) 
Timestamp: Fri, 23 Oct 2009 05:15:31 UTC 


Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) 
Line: 0 
Char: 0 
Code: 0 
URI: http://localhost/flagdown/index.php?option=com_companies&view=profile&TAXI_ID=a936db2fe93260547e75782e250d672c&COMPANY_NAME=asd1234&CONTACT_NAME=aa&ADDRESS=aaa&[email protected]&[email protected]&DISPATCH_PHNO=5555555555&ADMIN_PHNO=5555555555&NO_OF_TAXIS=57&ALLOW_AD=&TOTAL_REBATE=0.000000&USERNAME=ankit 
+1

你是否谷歌搜索KB927917? – 2009-10-23 05:28:12

+0

腳本元素是否在腳本修改的容器中? – alex 2009-10-23 05:44:58

回答

0

嘗試使用W3C validator驗證你的HTML,以確保你正確關閉了所有的元素(也即你的HTML是有效的)。

然後,確保你不與DOM干擾前的頁面完全加載。

要知道更多我們不得不看到你的HTML源代碼,並(即操縱DOM特別任何JS)任何JavaScript。

2

聽起來像是你已經有了一些JavaScript時試圖修改DOM它已經準備好了。你有沒有機會使用JS庫?他們真的幫助了這一點;例如,jQuery的解決辦法是......

$(document).ready(function() { 
    // Any code you put in here won't run until everything is ready. 
}); 
+0

thnx爲支持 – 2009-10-23 08:28:01

0

如果你還沒有驗證您的HTML和使用解決了這個:

window.onload = function() { /* code here instead so you are sure dom is complete */ } 

$(document).ready(function() { 
    // Any code you put in here won't run until everything is ready. 
}); 

然後你可以想要設置超時。

如:

$(document).ready(function() { 
    setTimeout(function() { 
     // Any code you put in here won't run until everything is ready. 
    }, 500); 
}); 

有時IE只需要一個律」更多的時間。