473,587 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE Freeze on httprequest, FF works fine! Only WinServer

2 New Member
Hello.

This is my first post here and i have a big problem with my script!

One page (child.htm), was delivered not by me and i can't change it. This page calls a methode in a object of my page. I have opened the child.htm in a popup, so by opener.API the child.htm page can user the methodes which was defined in my API Obnject on (parent.htm). On my parent.htm, with i can edit, the called methode "sendValue" open a sync HTTPRequest and will deliver the result back to the child.htm. The backdelivering isnt implementet jet, but the call must be syncron, because otherwise i cant get a return call of the sendValue methode.


I have found this things:

The freeze of the IE is in every IE version.
The freeze is only, if the Webserver is a Windows machine, on a Linux Webserver it works.
And the freeze is only, if in the child.htm was requiered 2 *.htc files which havn't exist. If one of this htc files exist, the freeze doesn't do.
The freeze script freeze on the xmlHttp.send(nu ll); methode.
If on the child.htm page a alert() was called before the API.sendValue methode was called the ie doenst freeze, but if i set a alert() in the parent.htm to sendValue mehtode, the freeze is still there.

I have uploaded the script on one windows and one linux server.

Links:

Side to test:
http://www.tsojka.de/ie/parent.htm (Linux)
http://dev24-2.reflact.com/ie/parent.htm (Windows)

and the child page, which was opened by parent.htm

http://www.tsojka.de/ie/child.htm
http://dev24-2.reflact.com/ie/child.htm

And at least the code:
parent.htm
[PHP]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>test parent</title>
<script type="text/javascript">
var popup;
var API = new Object();

API.sendValue = function (paramName, value) {

var xmlHttp = null;
if (typeof XMLHttpRequest != 'undefined') {
xmlHttp = new XMLHttpRequest( );
}
if (!xmlHttp) {
try {
xmlHttp = new ActiveXObject(" Msxml2.XMLHTTP" );
} catch(e) {
try {
xmlHttp = new ActiveXObject(" Microsoft.XMLHT TP");
} catch(e) {
xmlHttp = null;
}
}
}

var page = document.URL.ma tch(".*:\/\/[^/]*\/[^/]*\/") + "test";
if (xmlHttp) {
xmlHttp.open('P OST', page, false);
try {
xmlHttp.send(nu ll);
} catch(e) {
}
}
return "BLA";
}

function openWindow(href ) {
popup = window.open(hre f, "BUGWINDOW" , "width=50,heigh t=50,left=0,top =0,location=no, scrollbars=auto ,resizable=yes, menubar=no, status=no, toolbar=no");
}
</script>

</head>

<body>
<a href="javascrip t:openWindow('c hild.htm')">STA RT BUG</a>
</body>
</html>
[/PHP]

child.htm
[PHP]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style>
.aClass {
behavior:url(a. htc) url(b.htc);
}
</style>
</head>
<body>
<span class="aClass"> IE BUG</span>
<script type="text/javascript">
bla = window.opener.A PI.sendValue("A ", "B");
</script>
</body>
</html>[/PHP]

Can anyone help me?
Sep 14 '07 #1
4 7020
acoder
16,027 Recognized Expert Moderator MVP
When using the POST method, the parameters are sent using the send method.

If you're going to make a synchronous request, the browser will freeze until it gets a response. AJAX is supposed to be asynchronous.
Sep 14 '07 #2
ToxSox
2 New Member
yes sure, but i need a syncron request to return the right value back!

Also the request doesnt go to the server, because it was locked!

My last result is, that the problem is with the maxConnectionsT oServer from the IE. If i change the setting in my registry, it works. But the default value are 2 connections!
I think that the child has reserved 2 connections and the parent doesnt know about this, so the parent wants to create the 3.
Sep 14 '07 #3
yabblo7
1 New Member
I've run into the same problem. I'm using Zend PHP with its bundled Apache server on a windows xp box. At my old work I used the same setup and never ran into this IE problem. Now I am running into it all the time when using the same setup.

I notice that if you keep reloading the IE browser eventually you might get it to work. Once the first Ajax request works then the rest of the Ajax requests from IE seem to work. While debugging it is clear that the problem is with something the browser and the apache server communication getting held up.

After much more scouring the internet the problem with IE 6 & 7 and this problem can be tracked down the usage of:

request.setRequ estHeader("Conn ection", "close");

For some reason this causes IE 6 & 7 to freeze but they're actually timing out the connection. If you debug the readyState changes you'll notice how they don't actually change until much later in the initial connection. IE 8 doesn't have this problem.
Mar 6 '08 #4
acoder
16,027 Recognized Expert Moderator MVP
Can you post some of your code or a link to a test page.
Mar 7 '08 #5

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

Similar topics

8
2342
by: Rick Hawkes | last post by:
Has anyone seen these symptoms? Running IIS 4.0 on NT 4.0. Service packed and updated to the max. Reboot system and everything works fine. After some undetermined period of time (between 10 and 36 hours) asp pages stop working and just hang. Normal HTML pages work just fine.
1
2332
by: Adrian Manic | last post by:
H We have a strange problem which I can not get my head around The entry point of the application is a file called home.asp. First it includes some files that define constants, then is resets / creates a Cookie called PROCAT and then outputs a basic HTML page. The Body tag has an OnLoad event that gets called on the Client Side which does...
3
1886
by: Larry R Harrison Jr | last post by:
I designed this webpage: http://www.dbases.net/photography_pages/new_style_frames_index.html It has horizontal hover/pop-down menus; it works fine on the given machine run off the hard drive, but NOT off the Internet. However, on another machine in my house, it runs fine on the Internet, period--no problems. One of those machines it runs...
14
5446
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net that works well as an html page. It brings up a modal popup window that I have been trying to work out for days now and this was the closest I...
1
1046
by: WTH | last post by:
....I call a method on it which trys to read the registry. I can open/close/manipulate databases just fine but the registry? Bang, exception... The object works fine from a regular C# windows application, a VB .Net app, or an unmanaged C++ app. The weird thing is, this older COM object I have which was written by someone else reads the...
3
1090
by: ToddT | last post by:
the following code snippet implements an "auto complete" functionality for combo boxes. it works fine on all the developer's computers but only selects the first item in the combo box on non-developer's computers. what kind of workstation configuration difference could cause this kind of problem? i'm at a lost... Private Sub...
2
1236
by: Rico | last post by:
Hello, I have a web application that I developed in ASP.NET on one machine and I'm trying to deploy it on a Windows 2003 Server. The application runs fine on the development workstation connected to the development SQL Server 2000. I've deployed the application to the server and it works fine, accesses the data in the SQL database, but...
5
2056
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an error and am directed to the Windows Application Event Log. The following message is logged: ------------- Source: ASP.NET 1.1.4322.0 Event...
13
3719
by: Stever1975 | last post by:
I'm working on something similiar to a shopping cart item page. There is a table of items. Each item has an image, a textbox for the qty and an image for the add button. When the add image is clicked it adds the item to the cart array and sums it if the item already exists in the cart. This code works perfectly fine in Internet explorer and...
0
8205
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, 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. ...
0
8339
jinu1996
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...
0
8220
tracyyun
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...
0
6619
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.