Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2007, 12:49 PM
Registered User
 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default XmlHttp in popup window

Hi

I am trying to display a modeless popup window (opened by window.open) which get data from the server using xmlHttp periodically and display it.
Just after this window is opened, the opener window is submitted.
My problem is that all xmlHttp requests are returned only when the opener window is back from the server (this postback takes some time).
Until this, the readystate of the xmlHttp objects is not set to 4.

Does anyone know what can be the problem?

Thanks
Guy

 
Old December 12th, 2007, 03:56 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Are the XMLHttpRequests asynchronous? The only thing I can think of off-hand is that you are limited to two requests per domain at any one time by most browsers. If the opener is in the middle of a request that leaves one at most for the other window including its own request.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a popup window janakiraman Javascript 0 June 25th, 2007 01:08 AM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
Gridview and Popup Window Yusuf ASP.NET 2.0 Basics 2 April 20th, 2006 11:56 AM
popup window sankar Pro VB 6 0 July 29th, 2003 01:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.