Home > JavaScript, jQuery > [Update new version v1.2.2] jCollapser v1.2

[Update new version v1.2.2] jCollapser v1.2

[UPDATE #2] New version more info here.

New version of the jQuery plugin jCollapser. See change log for changes.

Source can be found here.
Latest development source can be found in the SVN repository at http://code.google.com/p/progadv/source/checkout

Change Log:

v1.2.1:
-Fixed error with init time state settings.

v1.2:
-Add cookie state support
-Add initialization time state setting if cookie is not set.

v1.1:
-Restructure of code to allow multiple collapse elements on the same page

v1.0:
-Initial release

Twit This Post!

Advertisement
  1. Kevin
    September 11, 2009 at 7:41 pm | #1

    The jcollapser.html example that comes with the download doesn’t seem to be working in Firefox 3.5.3. Am I missing something?

    • September 12, 2009 at 10:29 am | #2

      I’ll take a look and see :)

    • September 13, 2009 at 10:00 am | #3

      You need to make sure that the urls to the javascript files are correct.

  2. horseShack
    October 2, 2009 at 8:30 pm | #4

    Great script MUCH appreciated!

    In testing on IE I get a weird flicker when the divs are hidden and any html code inside of jcollapse1 and 2 results in a linebreak pushing the content down a line when the divs are open.

    Other than that this thing is perfect.

  3. feha
    December 24, 2009 at 1:02 am | #5

    Hi
    is there any way to use it without so much extra html markup ???

    thank you

    using two id’s and two div’s to display + – is too much …

    how about:

    Some content …

    So if used one div
    you could change the class name via JQuery ???

    Please can you show how to use your plugin with simple html markup ?

    Than You

    • December 24, 2009 at 10:06 am | #6

      Yes you could use less markup.

      For example you could remove the 2 divs for + and – and use a class for each indicator and just change the class. This will make the plugin cleaner as well.

      I’m in the process of setting up a dev machine again. When that is done I’ll try to make a new version of this.

  4. feha
    December 24, 2009 at 11:42 am | #7

    Hi, that would be great.
    You could remove even the fieldset ID and target just one ID in one div :-)

    I like your solution very much cause of cookies :-)

  5. May 4, 2010 at 2:22 am | #8

    Is the plugin setup for more than two collapsible sections on a page?

    When I have more than two instances on one page the 3rd onwards become nested within the second instance.

    ie. When the second section is collapsed the 3rd onwards cannot be seen or accessed. Any tips?

    Otherwise the plugin works very well, thanks for your development efforts!

  6. May 4, 2010 at 8:43 am | #9

    I think there was a missing div in the example code somewhere.
    Thought I fixed that already.

  7. May 4, 2010 at 9:47 pm | #10

    Thanks for the reply. After much head scratching I found a bug in one of my elements which fixed the problem. Sorry for the trouble and thanks again for a great product.

  1. March 10, 2009 at 9:55 am | #1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.