Active
Project:
jQuery Tools
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2010 at 09:53 UTC
Updated:
27 Feb 2012 at 16:58 UTC
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});
Comments
Comment #1
chris.jichen commentedHey 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
Comment #2
Dawa commentedPlease 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.
Comment #3
sharlene commentedTotal 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.
Comment #4
giorgoskI think (without trying) that #1 talks about inserting code like this
in the template.php of your theme
in order to use those jquery elements elsewhere
Comment #5
lyosef commentedOther 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?