Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7) Gecko/20040630
Dear group,
below is a simple XML request. It works fine, the only problem is that
Mozilla dos not quit the data transfer mode but keeps on "waiting for data
from host..." and the Mozilla icon keeps on moving for ever. Again,
everything works fine, but it is annoying.
The same behaviour occurs with Mozilla 1.8 and GET/urlencoded data
Any hint?
thanks,
Benedikt
-
var oXMLHttpRequest = new XMLHttpRequest( );
XMLHttpRequest. open("POST", "http://"+cAPPLICATIONS ERVER+cSISSRV, false);
oXMLHttpRequest .setRequestHead er("Content-Type","multipar t/form-data");
oXMLHttpRequest .setRequestHead er("Content-Encoding","ISO-8859-1");
oXMLHttpRequest .setRequestHead er("Accept","te xt/xml");
oXMLHttpRequest .setRequestHead er("Cache-Control","no-cache");
try {
oXMLHttpRequest .send(this.oXML Doc);
try {
return oXMLHttpRequest .responseXML;
}
catch(e) {
alert('Der XML-Response kann nicht interpretiert werden');
return null;
}
return oXMLHttpRequest .responseXML;
}
catch(e) {
alert('Der XML-Stream konnte nicht geöffnet oder empfangen werden');
return null;
} 1 2128
Benedikt Wismans wrote: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7) Gecko/20040630
below is a simple XML request. It works fine, the only problem is that Mozilla dos not quit the data transfer mode but keeps on "waiting for data from host..." and the Mozilla icon keeps on moving for ever. Again, everything works fine, but it is annoying.
var oXMLHttpRequest = new XMLHttpRequest( ); XMLHttpRequest. open("POST", "http://"+cAPPLICATIONS ERVER+cSISSRV, false);
It seems you would want
oXMLHttpRequest .open(...)
and not
XMLHttpRequest. open(...)
oXMLHttpRequest .setRequestHead er("Content-Type","multipar t/form-data");
Why the Content-Type header as multipart/form-data
oXMLHttpRequest .send(this.oXML Doc);
this looks more like you are sending an XML document. But that is a
guess from your variable name.
return oXMLHttpRequest .responseXML;
As for that problem does that occur with any URL you are trying to load
or only with a particular URL or at least server?
Have you tried asynchronous loading, e.g.
oXMLHttpRequest .open(..., ..., true)
together with an onreadystate handler?
How are you calling the code above, maybe you are just lacking a return
false or similar in an onclick handler of a link.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mr_burns |
last post by:
Hi there,
I am using the following function to import a xml file whether the
users browser be IE or Mozilla:
function importXML(file) {
var xmlDoc;
var moz = (typeof document.implementation != 'undefined') && (typeof
document.implementation.createDocument != 'undefined');
var ie = (typeof window.ActiveXObject != 'undefined');
|
by: niftyhawk |
last post by:
Hi,
Can anybody give me a simple example of how to Call Web Services from
Mozilla based Browsers ? I can call web services from IE browser using
web service behavior file, without any problems. Just wanted to know an
easy way to call them from Firefox or Netscape.
Thanks,
Nifty.
|
by: Jarson |
last post by:
My JavaScript is trying to POST data to a CGI script (Perl) using
XMLHttpRequest. My CGI server gets different data from IE than Mozilla
Firefox.
// For Mozilla, req = new XMLHttpRequest();
// For IE req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = requestHandler ; // function to handle async
response
req.open('POST', myURL, true); // use POST
req.send('foo=11&bar=22') ;
|
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, using the same
HTML/JS it always returns no data (xmlhttp.responseText is null).
When I try to get headers using Mozilla or display the http status code
I get some obscure exception in the javascript console that I've given
up on searching for an...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |