You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

jquery.tools.min.js v1.2.0 is missing jquery.delegate()? Created May 7, 2010

This thread is solved

Views: 9066     Replies: 17     Last reply Dec 22, 2011  
You must login first before you can use this feature

johndwells

Posts: 3

Registered:
Jul 21, 2009

jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 7, 2010

I've just dropped in the script include to the CDN version of jquerytools v1.2.0, and then tried to set up a jquery.delegate() scenario, but Firebug told me that delegate is not a function. I did a quick search in the source of jquery.tools.min.js and, sure enough, delegate isn't there. But shouldn't it be, since it's supposed to include jquery 1.4.2?

Cheers!

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 7, 2010

Reply to: jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from johndwells
Include jQuery 1.4.2? Just looked at the documentation

http://api.jquery.com/delegate/

"Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements."

Please help. I don't understand what you mean.

johndwells

Posts: 3

Registered:
Jul 21, 2009

» » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 7, 2010

Reply to: » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from tipiirai
Hi Tero,

Sorry if I wasn't clear...

The jQuery Tools documentation (http://flowplayer.org/tools/download/index.html ) states that by including the official jQuery Tools UI library from the CDN (http://cdn.jquerytools.org/1.2.0/jquery.tools.min.js ), that jQuery 1.4.2 should be available for my scripts.

Which it is, however the delegate() method is not. When I search for "delegate" in the jquery.tools.min.js source, I do not find it. But it should be there, since delegate() was added in jQuery 1.4.2.

For example if you search for "delegate" within jQuery's own CDN version (http://code.jquery.com/jquery-1.4.2.min.js ), you will find delegate() being defined.

Unless I've completely gone mad...

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 7, 2010

Reply to: » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from johndwells
oh. ok. got it now. much clearer! will investigate. thanks!

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 10, 2010

Reply to: » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from johndwells
yes. you are right about this. 1.2.0 has 1.4.1 in it. 1.4.2 will be in 1.2.1.

THANKS!

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 11, 2010

Reply to: » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from tipiirai
jQuery Tools 1.2.1 is out and this issue is now fixed. For a complete list of changes see:

http://flowplayer.org/tools/release-notes/version-1.2.1.html

johndwells

Posts: 3

Registered:
Jul 21, 2009

» » » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 11, 2010

Reply to: » » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from tipiirai
Wicked, thanks Tero! Amazing job by the way - I use Tools on literally EVERY project, and seeing 1.2 come out is really awesome.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?

Posted: May 12, 2010

Reply to: » » » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from johndwells
thanks. good to hear.

PaulRaye

Posts: 2

Registered:
Aug 4, 2010

delegating tooltips

Posted: Aug 4, 2010

Reply to: » » » » » » jquery.tools.min.js v1.2.0 is missing jquery.delegate()?, from tipiirai
Is there a way to use delegate instead of bind in tooltips? For example I have a page that is changing divs via ajax all the time. I would like to set up my tooltips by $(".whats_this").tooltips() and have those tooltips work even if the div is changed out via ajax.

Sorry if this is a noob question.

Paul