Hi, group
I have a problem with IE when using XMLHttpRequest object in
asynchronous mode. I have a page, and when it is closed, the onunload
event handler of the page will create an XMLHttpRequest object and
post some data back to the server. If I set it to asynchronous, next
time when I try to launch the same page, the IE browser hangs there.
But after I set it to synchronous, everything is fine. I didn't know
why. Can anyone give me some hints? thanks! 4 2991
On Oct 16, 12:40 pm, "jackcha...@gmail.com" <jackcha...@gmail.com>
wrote:
Hi, group
I have a problem with IE when using XMLHttpRequest object in
asynchronous mode. I have a page, and when it is closed, the onunload
event handler of the page will create an XMLHttpRequest object and
post some data back to the server. If I set it to asynchronous, next
time when I try to launch the same page, the IE browser hangs there.
But after I set it to synchronous, everything is fine. I didn't know
why. Can anyone give me some hints? thanks!
I tried to check the state for the XMLHttpRequest object, and it
seemed that it stopped at 1.
On Oct 16, 12:40 pm, "jackcha...@gmail.com" <jackcha...@gmail.com>
wrote:
Hi, group
I have a problem with IE when using XMLHttpRequest object in
asynchronous mode. I have a page, and when it is closed, the onunload
event handler of the page will create an XMLHttpRequest object and
post some data back to the server. If I set it to asynchronous, next
time when I try to launch the same page, the IE browser hangs there.
But after I set it to synchronous, everything is fine. I didn't know
why. Can anyone give me some hints? thanks!
I haven't tried to make and XHR request onunload.
What are you trying to accomplish and what information are you trying
to send to the server? Perhaps you could use a GET request by creating
an image object?
Peter
It is some form data. At the beginning I used the form submit event to
post the data. The problem is that in one event (i.e., unload) the
form needs to be posted more than once, but only the last submit event
survives. So I switch to use XHR, but I bumped into this IE specific
problem. It works fine on FireFox.
On Oct 16, 1:11 pm, Peter Michaux <petermich...@gmail.comwrote:
On Oct 16, 12:40 pm, "jackcha...@gmail.com" <jackcha...@gmail.com>
wrote:
Hi, group
I have a problem with IE when using XMLHttpRequest object in
asynchronous mode. I have a page, and when it is closed, the onunload
event handler of the page will create an XMLHttpRequest object and
post some data back to the server. If I set it to asynchronous, next
time when I try to launch the same page, the IE browser hangs there.
But after I set it to synchronous, everything is fine. I didn't know
why. Can anyone give me some hints? thanks!
I haven't tried to make and XHR request onunload.
What are you trying to accomplish and what information are you trying
to send to the server? Perhaps you could use a GET request by creating
an image object?
Peter
ja********@gmail.com a couché sur son écran :
It is some form data. At the beginning I used the form submit event to
post the data. The problem is that in one event (i.e., unload) the
form needs to be posted more than once, but only the last submit event
survives. So I switch to use XHR, but I bumped into this IE specific
problem. It works fine on FireFox.
On Oct 16, 1:11 pm, Peter Michaux <petermich...@gmail.comwrote:
does it work with IE7?
in my code..
var http_request = false;
if (window.XMLHttpRequest)
{ // Mozilla, Safari,... and IE7
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType)
{
http_request.overrideMimeType('text/xml');
}
}
else if (window.ActiveXObject)
{ // IE6 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matt Kruse |
last post by:
I'm aware of the circular reference memory leak problem with IE/closures.
I'm not sure exactly how to resolve it in this situation. Also, Firefox
appears to grow its memory size with the same code....
|
by: Joe Attardi |
last post by:
Hey all!
I was reading over at the IE Blog the other day
http://http://blogs.msdn.com/ie/] and read some interesting, and
encouraging news. According to Sunava Dutta, an IE Program Manager,...
|
by: TLaufenberg |
last post by:
I'm new to Javascript programming and I've run into a bit of a snag
with making an XMLHttpRequest in the Safari browser. Actually, the
request doesn't work in Firefox either but only when I use a...
|
by: Peter Michaux |
last post by:
Hi,
The FAQ correctly says the following:
"Mozilla (NN6.2+, Firefox, Ice Weasle etc), Opera 7.6+, Safari1.2+, the
Windows version of IE versions 5+, and some other browsers provide the
XML...
|
by: Charlie |
last post by:
I am trying to make an XMLHttpRequest which violates the default "same-
origin"policy in Firefox. I checked the archives and found a method
that should work but it does not. Below is the test code...
|
by: geevaa |
last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3
XMLHttpRequest and AJAX for PHP programmers
James Kassemi
Introduction:
Although the concept isn't entirely new, XMLHttpRequest...
|
by: Tarik Monem |
last post by:
OK, I'm pretty sure this cannot work because I'm trying to use JavaScript (client-side) to write to an xml file (which is server-side) using XMLHttpRequest.
Can I use PHP do what I'm trying to do?...
|
by: Patrick Nolan |
last post by:
I'm working on cross-platform portability of some javascript.
My Macintosh testing platform is rather old. It has Safari
1.3.2 and Internet Explorer 5.2. I got Safari working, but
now IE is...
|
by: Michael Nemtsev [MVP] |
last post by:
Hello,
In the current application we have several httpmodules to process pages,
and we have several pages with calls directly through the XMLHttpRequest.
Now the requiremens is to detect the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |