Hi,
Love Quick Tabs! Fast & clean...when I can see them. I'm just starting with Drupal so it's very possible that it is me.
I have Drupal 6.2, Quick Tabs 2008-Apr-24 and am using the Garland theme and am on Windows XP.
I've created a QT module with 4 tabs. In the tabs I have put Active Forum Topics, Recent Blog Posts, Recent Comments and Recent FAQs.
Sometimes the tabs show up and work fine but more often the tabs do not show and instead I see the tabs in a bullet list below that I will see a grouping of the contents of the first tab. Below that the contents of the second and so on.
I have tried viewing it in both IE and Firefox and have created a second QT module with different contents and get the same result.
Any ideas?
Thanks,
J

CommentFileSizeAuthor
#13 qt.patch768 bytesdruvision
#2 qt_shot1.gif33.19 KBj_boo

Comments

katbailey’s picture

Hi there,
can you send me a screenshot of this. I haven't seen this behaviour and would suspect that some other jQuery code is interfering. What other modules are you using?

regards,
Katherine

j_boo’s picture

StatusFileSize
new33.19 KB

Hi Katherine,
Thank you for looking at this. The Section that says Talk Talk Talk is the block and the bullets in that section are supposed to be the tabs. The sections below that are the contents of each tab.

Thanks again!
J

katbailey’s picture

Hi there,
it seems like both the javascript and css are either missing or disabled in your browser. Can you provide a link to the page or is it just on your local machine? You will need to somehow ensure that quicktabs.css and quicktabs.js are both being loaded - in Firefox you can use Firebug to debug. Without being able to look at the source of the page I can't help to debug but hopefully this will help you.

Katherine

j_boo’s picture

Hi Katherine,

Thank you for your time on this.
I have looked at the page in Firebug and I don't see quicktabs.css or quicktabs.js. How do I fix this? I'm also very confused as to how I can see the tabs sometimes but not other times. Are the .css & .js only loading sometimes?

Thanks,
J

dforge’s picture

I'm having a similar problem where it looks great when I'm logged in, but it does not appear for anonymous users.

jaydub’s picture

Regarding #5 I think this issue could be the answer to your
particular problem:

#262286: drupal_add_js undefined

Not sure how this relates to the D6 version however

Funkymoses’s picture

I'm seeing this too and think I can narrow it down: it never happens for me as an admin, but it does happen for anon or regular users when they are *not on the homepage.* It appears the quicktabs.js file is not getting included there for whatever reason. My workaround is to add in:

drupal_add_js(drupal_get_path('module', 'quicktabs') .'/js/quicktabs.js');

...into the HEAD of my page.tpl.php. This might be less than ideal but my quicktabs appear on every page of my site so I'm okay with it.

Funkymoses’s picture

correction: that workaround functioned on my local test version but did not fly on the actual site. To get it working there I had to forcibly load the js without calling drupal_add_js, and now it's displaying sans css, which I haven't forced in a similar fashion. So... yeah.

boriso’s picture

Hi !

I am having a very similar problem. The problem occurs only on IE7, on firefox3 everything is fine. IN IE7, when on the homepage the tabs are being shown allright, but when not on the homepage indeed the js file is not loaded. My solution was to have quicktabs only on the homepage... ! Probably there is a betting fix out there ;)

mmmweb’s picture

Same issue. When logged in the tabs are fine, but when logged out the content is stacked...looks terrible! I only have this showing on the front page too.

So we have an issue where css and js are not loading to anonymous users...did anyone figure out a fix for this yet? I'll be trying a few things, so I'll let y'all know if they work!

sclowry’s picture

Did this get worked out? I am having the same issue and I see there has not been any activity on this issue for a couple weeks.

pasqualle’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

is it still a problem with the latest release?

druvision’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new768 bytes

It seems to me as a duplicate of http://drupal.org/node/342459#comment-1202088 - where anonymous users can't see the tabs.

The attached patch solves it for the latest dev release as of today.

pasqualle’s picture

Title: Disappearing tabs » Disappearing tabs (quicktabs.js not loaded)
Category: support » bug

As I see there are 2 issues with this quicktabs.js not loaded problem.
1. anonymous user vs admin
2. firefox vs IE

The first issue is most probably a block caching issue. As i know setting cache to false in drupal_add_js does not solve this problem, but you can still convince me that it works..

The second issue. As I googled around, the defer parameter fixed some problems with javascript in IE for many people. I think setting this parameter makes no harm as quicktabs.js should not change the HTML at page load. But I am not convinced, because I still can not reproduce the problem with IE7, and I raised a question when I read the google results.
Is your page valid? please test it with http://validator.w3.org/ The interpretation of invalid pages in different browsers is quite "interesting"..

the other parameters to drupal_add_js() in the patch are set to default

drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE, $preprocess = TRUE)
yhager’s picture

For me it was happenning for admin as well. After I disabled the block cache, it began working as expected.
I hope this will be fixed soon - the block cache is important for performance.

(I haven't used any patch)

joeyembers’s picture

I turned off block cache and the tabs showed up just fine for anonymous users.

katbailey’s picture

Status: Needs review » Closed (duplicate)