Not related to the topic, but Intercept will work faster if you
replace:
 "a.thickbox, area.thickbox, input.thickbox" -->  ".thickbox"

It won't be doing a search, but a filter, so the more you specify,
worse perfomance you'll get.

As for the plugins... I doubt plugin owners will actually make one
custom release to be compatible with Intercept.
What you can do it replace every binding they do in the plugin, for an
intercept call. That is LIKELY to make it work like you expect.

If you do make a custom version of their plugins, you can email it to
them and maybe some will actually appreciate that.

As a final note, I always encourage the use of Listen instead of
Intercept, but I understand Listen has some relevant limitations.
For the thickbox binding, you are able to safely use Listen instead of
Intercept.

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 17 jun, 04:03, Lion29 <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I have recently discovered the beauty of event delegation and the best
> option for me was Intercept plugin.
> It is cool to bind only once certain events and then you are care-
> free.
>
> But now I have more needs. I would like to "permanently" set some
> other behaviours to some kind of elements:
>
> clueTip, tooltip, thickbox, tabs....
>
> for thickbox I managed, it was rather easy since TB uses an easy
> function:
>
> $(document).intercept("click", "a.thickbox, area.thickbox,
> input.thickbox", function(){
>         var t = this.title || this.name || null;
>         var a = this.href || this.alt;
>         var g = this.rel || false;
>         tb_show(t,a,g);
>         this.blur();
>         return false;
>
> });
>
> but how can I use intercept for others? How can I "convert" this code
> to intercept?
>
> $('img.tips').cluetip({
>         'attribute':'title',
>         'dropShadowSteps':3,
>         'width':'350px',
>         'sticky':'true',
>         'ajaxCache': true,
>         'hoverIntent' : {
>           sensitivity:  3,
>           interval:     250,
>           timeout:      0
>         },
>         showTitle:false,
>         ajaxSettings: {
>           dataType: 'html'
>         }
>
> });
>
> Please advice... your help would be much appresciated!

Reply via email to