jQuery Tools have a bunch of plugins http://flowplayer.org/tools/download.html (autoscroll, navigation, mousewheel, slide effect etc) but how do i use them with this module?

Example on how you apply autoscroll to the scrollable tool.

$("#scroller").scrollable().autoscroll({autoplay: false});

http://flowplayer.org/tools/scrollable.html#autoscroll

Comments

chris.jichen’s picture

Hey I have tried this module.
It works for me.

To find out how to use this module, you have to go to their module's file, to find out the api.Which is bad.

Here is the file I found within their code example , which located in "jquerytools.module".

jquerytools_add('tooltip', '.user_img',"{effect:'slider'}");
drupal_add_css(drupal_get_path('module', 'jquerytools') .'/jquerytools/tooltip.css');
jquerytools_add('tabs', 'ul.tabs', 'div.panes > div');
drupal_add_css(drupal_get_path('module', 'jquerytools') .'/jquerytools/tabs.css');

Remember , don't invoke it in the page.tpl.php layer, i have tried , it doesn't work. Please invoke it better on module layer or deeper layer(which means the page template file will call the layer before the page being rendered.)

Thanks

Dawa’s picture

Please invoke it better on module layer or deeper layer(which means the page template file will call the layer before the page being rendered.)

What do you mean exactly ??
Can you give name or example, plz ?
Thx 4 help.

sharlene’s picture

Total newb to jquery here who would like to use these tools also. I've downloaded and enabled the module but do not see anything under 'configuration' for jquery. How do you use this in Drupal please.

giorgosk’s picture

I think (without trying) that #1 talks about inserting code like this

jquerytools_add('tooltip', '.user_img',"{effect:'slider'}");
drupal_add_css(drupal_get_path('module', 'jquerytools') .'/jquerytools/tooltip.css');
jquerytools_add('tabs', 'ul.tabs', 'div.panes > div');
drupal_add_css(drupal_get_path('module', 'jquerytools') .'/jquerytools/tabs.css');

in the template.php of your theme
in order to use those jquery elements elsewhere

lyosef’s picture

Other modules have an interface where elements can be configured. I think we were expecting this type of thing with the jquery module. Then when you go to the Jquery UI dialog page--wow, what a disappointment!! No place to actually insert any of the wonderful widgets demonstrated on the Jquery module website. A full set of instructions are no where to be found, least of all, on the Jquery site or the readme.txt. GiorosK, are you being deliberately obscure? If you have to build your own modules with it, why even have a 'Jquery UI Dialog'? Why have this module?