Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > AJAX problem: slow response using IE6 on Win2000 versus IE6 on XP

Reply
Thread Tools

AJAX problem: slow response using IE6 on Win2000 versus IE6 on XP

 
 
Pugi!
Guest
Posts: n/a
 
      02-05-2007
I have an AJAX application.
Using IE6, FF2.0, FF1.5, IE7 and Opera9 on WinXP the responses are
very quick. If the server returns an OK message the formů is removed
from screen. If not (because some required fields have no value, or
some fields have an invalid value) and error message is displayed
underneath the field..
Using FF1.5 and FF2.0 on Win2000 gives quick responses, but using IE6
on Win2000 there is a delay between alert('send info') and
alert('response from server') 15 till 20 seconds.
It is an AJAX-application, so I use a lot of XMLHttpRequests. For an
AJAX GET I don't notice any difference for the different browser and
OS combinations, same goes for a SUBMIT POST (where I direct
output(javascript) to a hidden iframe). The problem with the long
delay with an AJAX POST only occurs using IE6 on Win2000 . Is this a
known problem or should use different parameters for my AJAX POST ?

here I define url and strPos
....
alert('send info');
http.open('POST', url, true);
http.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded; charset=UTF-8");
http.setRequestHeader("Content-length", strPost.length);
http.setRequestHeader("Connection", "close");
http.onreadystatechange = function () {
if (http.readyState == 4) {
if(http.status == 200) {
alert('response from server')
var dom = http.responseXML;
var messg = dom.getElementsByTagName('message');
var target = document.getElementById('folder_' +
parentFolderID);
if (messg.length > 0) {
switch(messg[0].getAttribute('level')) {
case 'ok':
closeForm(frmNode);
refreshFolder(target);
break;
case 'warning':
case 'error':
closeForm(frmNode);
alert(messg[0].getAttribute('level') + ' : ' +
messg[0].getAttribute('text'))
break;
case 'notice':

errTarget.appendChild(document.createTextNode('Err or: ' +
messg[0].getAttribute('text')));
break;
}
}
}
}
}
http.send(strPost);

Johan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow response in table cells <TD> to mouseover with IE6 but fine inFirefox. markszlazak@gmail.com Javascript 4 06-02-2008 04:18 PM
Re: Mozilla versus IE versus Opera versus Safari Peter Potamus the Purple Hippo Firefox 0 05-08-2008 12:56 PM
equal? versus eql? versus == versus === verus <=> Paul Butcher Ruby 12 11-28-2007 06:06 AM
Fast Response in Visual Studio, slow response under IIS 6.0 tjlumpkin@hotmail.com ASP .Net 4 07-25-2006 08:11 PM
python startup very slow on win2000 angel Python 11 07-29-2004 11:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57