Results 1 to 2 of 2

Thread: Struggling with v2.2 of Animated Collapsible DIV

  1. #1
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Struggling with v2.2 of Animated Collapsible DIV

    1) Script Title: Animated Collapsible DIV v2.2
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
    3) Describe problem:

    I have used version 1 of the Animated Collapsible DIV, and it works extremely well, but I am struggling with v2.2. When I try the Developer's View code in my html editor (Homesite), I get "Line: 98 - Error: Object expected" when flipping from the code view to browse view, and then when trying to activate anything in the browse view I get "Line: 52 - Error: 'length' is null or not an object".

    I have put the exact code of the Developer's View up here as a test page (together with the animatedcollapse.js file in the same directory), but it does not seem to work for me. (I am looking at it in IE8, and I do not currently have any additional javascript pack installed on my machine.)

    Btw, what is the function of the jquery.min.js script file? I get the same errors as reported above whether this file is present or absent.

  2. #2
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by russ_e View Post
    Btw, what is the function of the jquery.min.js script file? I get the same errors as reported above whether this file is present or absent.
    Apologies - the above last sentence of mine wasn't correct at all!

    I think I've found the problem, having read DD's blog on "Using Google to host your jQuery (or other) JavaScript libraries". That blog highlights the issue of what and where to host, and, pertinently, external library references changing. On the page notified in my initial post, I had used:

    <script type="text/javascript" src="jquery-1.2.2.pack.js"></script>

    in the header, as is cited in the Developer's View page. It appears this is an instance of where the external library reference is now out of date, so I've used:

    <script type="text/javascript" src="jquery.min.js"></script>

    This is available as an external link of course (http://ajax.googleapis.com/ajax/libs.../jquery.min.js), but with libraries chopping and changing, I think my preference is to host it locally.

    Script works fine now. (See here.) Problem now solved.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •