Thanks for the module! I am using Collapsiblock and it works great in IE7 but it doesn't in Firefox. When I go to View Source, IE shows

class="title collapsiblock collapsiblockCollapsed"

and Firefox shows

class="title"

It looks like the title tag doesn't seem to get updated by JS but I have no clue as to what direction to take in order to fix this. I don't know if it's a problem with Collapsiblock or me. Here is my Firefox data:

Browser identifier: firefox
Browser version: 2.0.0.1
Browser major version: 2
Browser minor version: 0.0.1
Browser engine: gecko
Browser engine version: 20080404
Full user agent string: mozilla/5.0 (windows; u; windows nt 6.0; en-us; rv:1.8.1.14) gecko/20080404 firefox/2.0.0.14
Operating system identifier: win
Operating system version: unknown
Is Flash installed? Yes
Flash version: 9
Are popups allowed for this site? No
What is the newest version of Javascript this browser supports? 1.7

Here are my versions:

Collapsiblock 5.x-1.1 Makes blocks collapsible.
Javascript tools 5.x-1.1 Provides common methods used by Javascript Tools modules.

Please help!

Thanks --

Missy.

Comments

missym’s picture

Title: Works in IE, not in Firefox » Collapsiblock Not Working

I apologize for the prior hasty post. It is not working anywhere. The issue is the same but I guess the browser was using cached data. Anyway, Collapsiblock is not updating the class on my blocks.

Here is the script command from View Source

Drupal.extend({ settings: { "extlink": { "extTarget": "_blank", "extClass": "ext", "extSubdomains": 1, "mailtoClass": 0 }, "jstools": { "cleanurls": true, "basePath": "/" }, "activemenu": { "#block-menu-1": "activemenu/menu", "#block-menu-2": "activemenu/menu", "#block-menu-85": "activemenu/menu", "#block-menu-167": "activemenu/menu", "#block-menu-178": "activemenu/menu", "#block-menu-187": "activemenu/menu", "#block-menu-197": "activemenu/menu", "#block-menu-214": "activemenu/menu", "#block-menu-219": "activemenu/menu", "#block-menu-220": "activemenu/menu", "#block-menu-221": "activemenu/menu", "#block-menu-222": "activemenu/menu", "#block-menu-223": "activemenu/menu", "#block-user-1": "activemenu/menu" }, "collapsiblock": { "blocks": { "block-nice_menus-5": "3" }, "default_state": "3" }, "tabs": { "slide": false, "fade": false, "speed": "slow", "auto_height": false, "next_text": "next", "previous_text": "previous" } } });

I need some direction. Please help --

Thanks --

Missy.

missym’s picture

Assigned: Unassigned » missym
Status: Active » Closed (fixed)

** Okay ** Please completely ignore this post unless you have experienced the same problem. I resolved it by deleting the jquery update and jstools modules from the server and putting new ones up. If you do this, remember the jquery files in the misc directory. Something was out of sync and that seemed to resolve it.

gba2008’s picture

Version: 5.x-1.1 » 5.x-1.x-dev
Assigned: missym » Unassigned
Status: Closed (fixed) » Postponed (maintainer needs more info)

Hello,

I have the same problems but in all explorers. I use the Jstools 5.x-1.x-dev

The problem is only on blocks. In block.tpl.php I use it as: <h2 class="title"><span><?php print $block->subject; ?></span></h2>

I made an .inc too for my custom theme but nothing again.

Here my .inc:

<?php

function collapsiblock_theme_data() {
  return array(
    'titleSelector' => 'h2',
  );
}

Any help please?

rentex’s picture

Missy: What versions of JQuery Update and JSTools did you upload when it worked for you?

missym’s picture

jquery: 1.1.2

jstools: Here is the .info file:

; $Id: jstools.info,v 1.2.2.3 2007/08/08 21:26:07 nedjo Exp $
name = Javascript tools
description = Provides common methods used by Javascript Tools modules.
package = Javascript tools

; Information added by drupal.org packaging script on 2008-04-17
version = "5.x-1.1"
project = "jstools"
datestamp = "1208405112"

cwhitworth’s picture

I've run into the same problem. It seemed to start after I installed Panels 5.x-1.2 module. Collapsiblock has worked well for me for quite some time. Then, after installing Panels, blocks would open but not close. Now I can't open or close the blocks and the 'arrow' indicating a collapsible block doesn't show either.

I don't know if it might also have something to do with panels or the jquery update module. I'm currently using jquery update module to add Lightbox2 functionality to a image gallery.

MissyM seemed to hit the nail on the head when she said it seemed like "something was out of sync."

I've removed the Panels 5.x-1.2 module and jquery_update and jstools. The latest versions I've tried (with no success) are jquery_update 5.x-2.0 and jstools 5.x-1.x-dev.

Any suggestions on where I should go from here? Would you suggest deleting jquery update and reverting back to the original jquery? Could I have done something to screwup the jquery update installation?

Thanks.

I'm pretty much sunk without collapsiblock.

peterzoe’s picture

Hi there,

collapsiblock seems to not work with JQuery Update 5-2. Can anyone take a deeper look into this? There are several modules out there that don't seem to be working with JQUpdate 5.2, but only with 5.1 (e.g. taxonomy manager).

cheers, peter.

peterzoe’s picture

Update:

I installed the latest .dev version for drupal 5.x and block are collapsible again with JQuery Update 5-2 installed.

Cheers, Peter.