Hi all.
I want use jQuery plugin for work with tabs http://stilbuero.de/jquery/tabs_3/
It's looks like ok. I follow all instruction for using this plugin and download next files:
1. jquery-1.2.1.pack.js
2. ui.tabs.css
3. ui.tabs.js
4. ui.tabs.ext.js
and *.html with example.
In my theme i write:

...

  drupal_add_js('/themes/mytheme/tabs/jquery-1.2.1.pack.js');
  drupal_add_js('/themes/mytheme/tabs/ui.tabs.js');
  drupal_add_js('/themes/mytheme/tabs/ui.tabs.ext.js');
  drupal_add_css('/themes/mytheme/tabs/ui.tabs.css');

...

But it's not work! Any css or js file not watching.
Next i try not use drupal_add_* functions, and in i saw js and css files. But tabs not working. I add js script to block(php filter format) and use with

tag, because drupal_add_* not work. I replase from jquery-1.2.1.pack.js to /misc/jquery.js and rename it to jquery.js it's work but now collapsible not working. What a f*ck. Please help me, how right I can add jQuery plugin? p.s. http://drupal.org/node/89005 it's not help me.

Comments

vm’s picture

investigate the jquery update.module which I believe will fix the collapsed menus.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

ibragim’s picture

Thanks VeryMisunderstood, but it's not help me, i only see that css files was added.
Do you work with jQuery plugin? Can you explain how it add? Vary need.

ibragim’s picture

I update jQuery, but i don't now i right do it, because I just copy/paste jquery.js. It's right?

In my theme i write in template.php next code:

function mytheme_page($content) {
  //drupal_add_js('tabs/jquery-1.2.1.pack.js', 'theme');
  // ... остальное, всё что надо сделать
  //drupal_add_js('misc/jquery.js', 'theme');
  drupal_add_js('themes/notheft/tabs/ui.tabs.js');
  drupal_add_js('themes/notheft/tabs/ui.tabs.ext.js');
  drupal_add_css('themes/notheft/tabs/ui.tabs.css');

  return phptemplate_page($content);
}

Now i can use tabs, but have problem with collapsible, fields only to open and not close.
Any suggestion?

scrypter’s picture

maybe just FireFox with firebug. It works Ok otherwise.

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy

ibragim’s picture

Ok, actually i use firefox because it have firebug.
My problem is that with standart jquery.js collapsible work but tabs not work and with new jquery.js tabs work but collapsible work terrible.

nedjo’s picture

It's part of Javascript Tools, http://drupal.org/project/jstools

There are several other modules that provide tabs functionality based on the tabs module:

* http://drupal.org/project/cck_fieldset_tabs
* http://drupal.org/project/views_tabs
* http://drupal.org/project/panels_tabs

ibragim’s picture

yes i know this modules, but how you think what the right way using tabs:
-from drupal modules;
-free coding (in my case i input js code to block and output it from my region);
?

sherifmayika’s picture