Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

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 valiny
  • 6 manana an'ity olana ity
  • 1 view
  • Valiny farany nomen'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..

Novain'i cor-el t@

All Replies (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.