[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-28 Thread aboFaisal
May be I little far, but check this link: http://andrislinz.ch/tutorials/modalBox/index.html# and click the only existing link in the top left Open modalBox the box will be shown and click any thing out of the block will be disabled unless you closed the block by clocking Close modalBox I mean

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-28 Thread jake dimano
Thank you Ameen, jQuery and its plug-in blockUI does this already (other javascript/css libraries do this as well.) But I must confess, not paying attention to their internals had me always wondering on how they did it until you just explained it. Pretty nifty and simple, I might add. Had I

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-28 Thread aboFaisal
Hi jake dimano; I am new to JQuery, but familiar with Prototype. So just now I knew that blockUI is the modalbox alternative in JQuery. Even Mr. Lideln mentioned it in his first reply http://groups.google.com/group/jquery-en/msg/52e0fd7944131b42 but I didn't figured out that, otherwise I'll

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-27 Thread Lideln
Hi, I think you should use the blockUI plugin. It's really simple, and exactly what you are looking for, unless I'm mistaken. On May 27, 7:58 pm, con-man-jake jakedim...@gmail.com wrote: I am new to jquery and to web development in general. I have many elements (over 100) on a page each with

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-27 Thread waseem sabjee
you this you can use the bind() and unbind() right ? On Wed, May 27, 2009 at 9:17 PM, Lideln lid...@gmail.com wrote: Hi, I think you should use the blockUI plugin. It's really simple, and exactly what you are looking for, unless I'm mistaken. On May 27, 7:58 pm, con-man-jake

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-27 Thread James
How about setting a global variable such that it will be 'on' when a function is running, and set back to 'off' when done? Whenever a function sees that it's 'on' it will not execute. Aside from that, knowing you have so many elements with an onclick event, is there any other way to re-work your

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-27 Thread con-man-jake
Magic. Thank you Lideln. It worked immediately. I was able to do it in seconds. Thank you again. On May 27, 3:17 pm, Lideln lid...@gmail.com wrote: Hi, I think you should use the blockUI plugin. It's really simple, and exactly what you are looking for, unless I'm mistaken. On May 27,

[jQuery] Re: disabling all click events on all DOM elements for a small bit of time

2009-05-27 Thread con-man-jake
Hi James, I understand that I can do what you suggested (event delegation,) but I tested a test page with similar conditions and found that delegating and re-delegating took too long at runtime. It took about the same time whether I am using one controller function or not. But I am sure I will