> Is Ajax.Request somehow queuing up user events and refiring them after
> the request completes?

No, it isn't.

On IE7, it sounds as though your curtain div isn't where you think it
is in the z order or something like that, and separately the click of
the link seems to be being held up by the processing of the request.
(Are you talking to a server that only processes a single request in a
given session at a time?  Search the group for "concurrent requests"
or "simultaneous requests" for details, there've been a couple of
recent threads on that.)

You say you're using an onclick handler returning false (e.g., a DOM0
handler).  Have you tried using Element#observe[1] and Event#stop[2]
instead?  I don't know that it would make a difference, but it's more
up-to-date and may step around whatever the issue is.  This stops and
eats clicks on a div called 'curtain':

    $('curtain').observe('click', function(event) {

[1] http://prototypejs.org/api/element/observe
[2] http://prototypejs.org/api/event/stop

T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Jun 24, 6:46 pm, sclaflin <st...@steveclaflin.com> wrote:
> In IE7:
> If I create a div as a "curtain" that hides the rest of the page, but
> initially hidden, then unhide it before making an Ajax.Request, I find
> that click events on the curtain seem to get postponed until after the
> request completes (and my callback hides the curtain again).  Which
> means that if the user clicks on a link in the content beneath the
> curtain, that click takes effect after the curtain is gone.  If I use
> a plain old XMLHttpRequest to make the request, then the expected
> behavior occurs (an onclick handler for the curtain div returns false
> to disable clicking).
> Behavior is OK in Firefox.
> Is Ajax.Request somehow queuing up user events and refiring them after
> the request completes?  And, if so, can I override this?
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to