473,387 Members | 1,541 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,387 software developers and data experts.

Problem with xmlhttp and mozilla

I request a response with xmlhttp. I'm testing it on mozilla and
explorer. mozilla returns "undefined" unless i "alert" the value of the
response first.
explorer works fine. what is the problem.

Jul 23 '05 #1
2 1253
"xmlhttp" is the ms way to define or start an xml component.

Unless you have ever seen the 'mozilla' way of requesting
or never posted it verbatim, there is little change in hell to
get an affirmative anwser.

In other words : you can not use the same WORD to
have it on either browser the SAME way.

<jw*****@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I request a response with xmlhttp. I'm testing it on mozilla and
explorer. mozilla returns "undefined" unless i "alert" the value of the
response first.
explorer works fine. what is the problem.


Jul 23 '05 #2
jw*****@gmail.com wrote:
I request a response with xmlhttp. I'm testing it on mozilla and
explorer. mozilla returns "undefined" unless i "alert" the value of the
response first.
explorer works fine. what is the problem.


Probably your document gets loaded asynchronously and isn't fully loaded
when you requesting it. To get a synchonous load send a third parameter
(false) for your open command:
var httpRequest = new XMLHttpRequest();
var doc=null;
if (httpRequest) {
httpRequest.open('GET', file, false);
httpRequest.send(null);
doc = httpRequest.responseXML;
}
return doc;

see
http://unstable.elemental.com/mozill...equest.html#a4

Daniel
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Cholewa | last post by:
Hi I'm using Microsoft.XMLHTTP object from within JavaScript HTA application (or WScript). Object is set to use asynchronous mode as following: --------- var oXMLRequest = new...
9
by: fochie | last post by:
Greetings, I'm having a problem when I try to GET a file from my server via xmlhttp when using Mozilla. With IE I can get any type of file fine, get/display headers fine, etc. With Mozilla,...
12
by: Botan Guner | last post by:
Hi all, Here is the problem, i'm using Microsoft.XMLHTTP for ie and XMLHttpRequest for mozilla, on my local server which is win2000 server i've no problem with that but when i uploaded the file...
42
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox...
14
by: squash | last post by:
The following code works fine in Firefox/Netscape but wont work in IE. I suspect the problem is with one of these two simple functions. If there is no obvious error Ill paste the entire code. ...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
1
by: hamidawais | last post by:
Hi All I have a simple Ajax example that populates a combo box from the DB . The example is working fine on Internet explorer but it gives no result on Mozilla FireFox Given below is the...
5
by: gsreenathreddy | last post by:
hi! I am sending the code which is worked on browsers IE and Eclipse internal browser but not with mozilla. which is used to generate dynamic time on key stroke. <html> <body> <script...
7
by: burtonfigg | last post by:
On this page: http://jimpix.co.uk/default-ajax1.asp When viewed in IE6, only the wallppaper ajax section (which is 1 of 4 ajax sections, along with ecards / news / photo ecards and wallpapers),...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.