[jQuery] Re: "please wait"-box only if delayed response

2007-07-31 Thread Kia Niskavaara
Dan G. Switzer, II wrote: > Kai, > >> How can I make my #wait container show only if there is a delay in the >> response. Let's say that I >> only want to show it if there is no response within 2 seconds. > $(document).ready(function(){ >// cache "wait" result >var $wait = $("#wait");

[jQuery] Re: "please wait"-box only if delayed response

2007-07-30 Thread Mitchell Waite
ailto:[EMAIL PROTECTED] On Behalf Of seedy Sent: Monday, July 30, 2007 8:39 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: "please wait"-box only if delayed response You could use a http://www.w3schools.com/js/js_timing.asp setTimeout to delay the box from showing. I have had t

[jQuery] Re: "please wait"-box only if delayed response

2007-07-30 Thread seedy
You could use a http://www.w3schools.com/js/js_timing.asp setTimeout to delay the box from showing. I have had to deal with the same issue of my wait box 'flashing' for quick page loads, but instead of using setTimeout, I fade the box out. The fade always takes some time, so even on the quick

[jQuery] Re: "please wait"-box only if delayed response

2007-07-30 Thread Dan G. Switzer, II
Kai, >How can I make my #wait container show only if there is a delay in the >response. Let's say that I >only want to show it if there is no response within 2 seconds. > >This is my current code, which often cause the wait box to show and then >hide, quickly - which looks >odd to the user: > >$(