473,412 Members | 3,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

XMLHTTP is not working with Firefox

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.

2 1653
Dormilich
8,658 Expert Mod 8TB
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
Thanks Dormilich. good catch. i wasnt even looking at that.
Thanks again
Oct 1 '12 #3

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

Similar topics

4
by: sonic_soul | last post by:
Hi, I was curious if I could make my webservice work with firefox client webservice functionality. (i got it to work with webservice.htc) I am able to get firefox to see my serverside web...
5
by: warteschlange | last post by:
i want to postload javscript from another javascript. This works fine in firefox and IE6 for macIE i can use an Iframe to load the code and inject it with insertAdjacentHTML The problems arise...
3
by: TJS | last post by:
I am finding that the serverside requiredvalidator doesn't fire in the firefox browser, and user request proceeds through to my updateProfile method. Validation is working correctly in the IE...
5
by: McKirahan | last post by:
Which of these should Firefox 1.5 support? MSXML2.XMLHTTP.5.0 MSXML2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP Microsoft.XMLHTTP WinHttp.WinHttpRequest.5 WinHttp.WinHttpRequest.5.1
8
by: benoypaul | last post by:
I have the following javascripts which is working in IE, but not working in Firefox and opera. var xmlhttp=null; function showCustomer(str) { xmlhttp=getxmlhttp(); if (xmlhttp==null) {...
6
by: dmorand | last post by:
I'm having a little trouble with my ajax. I can see my results in IE, but not firefox. I'm assuming I'm missing some syntax somewhere. alert("Test " + results + testing); returns the values in...
3
by: geetha v | last post by:
Hi All, I need a scrolling DIV is a to display my dynamic tree in left frame. In my jsp , Div overflow is set to "auto" <DIV id=divScroller style="overflow:auto;height:200px"> <!--...
1
by: StevenS | last post by:
Ok, I'm very new to AJAX programming, and fairly new to Javascript. (I was originally trained on low-level C programming.) I'm trying to build a simple AJAX routine in a file named ajax.js: ...
9
by: canabatz | last post by:
i am not sure if this is the right way to use this AJAX script i did! i want to know i f it will be compatible with IE 6 also!! function getXMLHttp() { var xmlHttp; try { ...
22
by: Chris G | last post by:
Hi, I have a loop in which I'm making Ajax xmlhttp requests. This occurs within a function triggered by a window.onload event. The Ajax calls are being made with async=false, because they need...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.