阅读:4745回复:1
求教:Firefox执行以下的Javascript代码无任何响应,IE正常<html> <head> <script LANGUAGE="JavaScript"> var xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", "http://140.109.138.237:9080/Handy/index", true); xmlHttp.onreadystatechange=function() { if (xmlHttp.readyState==4) { alert("callback:"+request.readyState); alert("callback:"+request.responseText); content.innerHTML=xmlHttp.responseText; } } xmlHttp.send(); </SCRIPT> </head> <body> <div id="content"></div> </body> </html> 请高人指点。 |
|
1楼#
发布于:2007-03-06 17:09
try { // Needed for Mozilla if local file tries to access an http URL netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) { /* ignore */ } |
|