Caută ajutor

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.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

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 răspuns
  • 6 au această problemă
  • 1 vizualizare
  • Ultimul răspuns de 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..

Modificat în de cor-el

Toate răspunsurile (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.