By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,565 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

XMLHTTP is not working with Firefox

P: 2
this is killing me. It works fine with IE but nothing with Firefox. Can anyone help please
it should grab text from klm2 and the response should print to klm3

Expand|Select|Wrap|Line Numbers
  1. <script>
  2. function PostOrder() 
  3. var done1;
  4.    var xmlhttp = new XMLHttpRequest();   strPOSTURL="http://localhost/server/MYDLL.asp"
  5.    xmlhttp.Open("POST", strPOSTURL, false); 
  6.   xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  7.    xmlhttp.Send(document.getElementById("klm2").value); 
  8.    done1=xmlhttp.responseText; 
  9.    document.getElementById("klm3").value=done1.replace(/<(?:.|\n)*?>/gm, '');
  10.  
  11. </script> <textarea name=klm3 id="klm2" rows=10 cols=115>THIS IS A TEST<br> <textarea name=klm3 id="klm3" rows=25 cols=115>
Sep 28 '12 #1

✓ answered by Dormilich

JS is case-sensitive, so the XHR methods should be open() and send().

also check the Error Console for further issues.

Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
JS is case-sensitive, so the XHR methods should be open() and send().

also check the Error Console for further issues.
Oct 1 '12 #2

P: 2
Thanks Dormilich. good catch. i wasnt even looking at that.
Thanks again
Oct 1 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.