Results 1 to 4 of 4

Thread: animatedcollapse not working on Linux

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default animatedcollapse not working on Linux

    Script Title: animatedcollapse with jquery.min.js

    http://www.dynamicdrive.com/dynamici...edcollapse.htm

    I have been using the animatedcollapse script on a Windows box without issue. I recently ported the script to a Linux box. While the error occurs in jquery it appears to be from the animatedcollapse script because it is an exception throw error. Is there any recognized issue porting these two scripts to Linux? Thank you

    Upgrading jquery to the latest release changed the error location in the file.

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSN Optimized;US; InfoPath.2; MS-RTC LM 8; MSN Optimized;US)
    Timestamp: Fri, 9 Apr 2010 17:16:03 UTC


    Message: Exception thrown and not caught
    Line: 74
    Char: 921
    Code: 0

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The OS of your server shouldn't matter, as JavaScript is a client side language; what matters is just the output of the page. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

  3. #3
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Unfortunately I can't send the link. It is on an intranet that is unaccessible to the outside world.

    I tested Javascript with an external js file to prove Javascript is enabled and also that it can read the js file located in another location. I also tried it sitting locally where the HTML is found.

    I also used the same code that worked perfectly on a Window's box.

    It looks like there error is at this location

    throw "Syntax error, unrecognized expression: " + expr;

    The block looks like the following;
    // Improper expression
    if ( expr == old ) {
    if ( anyFound == null ) {
    throw "Syntax error, unrecognized expression: " + expr;
    } else {
    break;
    }
    }

  4. #4
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Consider it fixed. There was originally a Javascript access issue but I also created my own problem. The program I wrote created an empty set that did not happen in my Windows version. It forced the collapse to start in an open position and created the Javascript error.

    FYI - It does not like rel="toggle[]"

    <td><a href="#" rel="toggle[]" data-openimage="collapse.jpg" data-closedimage="expand.jpg"><img

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
  •