Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

The javascript code which is working on safari is not working on firefox. When I debugged it from HTTPFOX it gave NS_ERROR_DOCUMENT_NOT_CACHED error

  • 1 trả lời
  • 6 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi the-edmeister

more options

I have a javascript code which is working fine with safari but not working at all in firefox. The code is

<html><head></head>

<body>
<button type="button" onClick="handleButtonClick();">undo</button>
<button type="button">redo</button>
<select><option value="V1">V1</option>
<option value="V2">V2</option>
<option value="V3">V3</option>
<option value="V4">V4</option>
<option value="V5">V5</option></select>  

<script type="text/javascript">
function handleButtonClick(){var xmlHttp, handleRequestStateChange; 
handleRequestStateChange = function() {if (xmlHttp.readyState==4 && xmlHttp.status==200) { var substring=xmlHttp.responseText; alert(substring); } }      

xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "http://csce.unl.edu:8080/test/index.jsp?id=c6c684d9cc99476a7e7e853d77540ceb", true);
xmlHttp.onreadystatechange = handleRequestStateChange; xmlHttp.send(null);}
</script>

</body>

another I am getting this also in url text/html (NS_ERROR_DOM_BAD_URI)
</html>

Whats going wrong I can't figure out. Kindly suggest... I am struggling with this for last few days..

I have a javascript code which is working fine with safari but not working at all in firefox. The code is <pre><nowiki><html><head></head> <body> <button type="button" onClick="handleButtonClick();">undo</button> <button type="button">redo</button> <select><option value="V1">V1</option> <option value="V2">V2</option> <option value="V3">V3</option> <option value="V4">V4</option> <option value="V5">V5</option></select> <script type="text/javascript"> function handleButtonClick(){var xmlHttp, handleRequestStateChange; handleRequestStateChange = function() {if (xmlHttp.readyState==4 && xmlHttp.status==200) { var substring=xmlHttp.responseText; alert(substring); } } xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", "http://csce.unl.edu:8080/test/index.jsp?id=c6c684d9cc99476a7e7e853d77540ceb", true); xmlHttp.onreadystatechange = handleRequestStateChange; xmlHttp.send(null);} </script> </body> another I am getting this also in url text/html (NS_ERROR_DOM_BAD_URI) </html> </nowiki></pre> Whats going wrong I can't figure out. Kindly suggest... I am struggling with this for last few days..

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (1)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.