Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Please help. Javascript conflict on one page of web site

    I have two main components running on this page below.

    http://vtpr.net/asociacion-relacioni...d=54&Itemid=23

    Sobi directory and gavick photoslide. The problem is that the photoslideshow is not loading only on the page witht he directory. I did a little investaged and got a error console for firefox and it showing this error:

    Code:
        Error: Fx.Opacity is not a constructor
        Source File: http://vtpr.net/asociacion-relacionistas/modules/mod_gk_news_image_1/js/engine_compress.js
        Line: 1

    I have VERY VERY limited knowledge of javascript. Any and all help is super appreciated. Thanks in advance

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,201
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    Post your URL inside of [code]...[ /code] tags. It got mangled by the forum.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thank you very much for telling me. Here it is:

    Code:
     http://vtpr.net/asociacion-relacionistas/index.php?option=com_sobipro&sid=54&Itemid=23

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,201
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    Tomorrow, if nobody else has replied. It's late here. Bed time.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok cool! you help is very very much appreciated. I've spent days trying to solve this.

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,201
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    Have to admit defeat on this one. I think you need an expert on motools.js to help you out.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #7
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    whoa...didn't see that one coming! thank you anyways for atleast trying to help.

    But how do you know it's a mootools.js issue. This is a quote from another forum. Tell me what you think if you can:

    For each of the objects which require initialization through window.onload(); located their
    initialization function and placed them all into one function called by onload().

    Each time you attach a function the onload() event you overwrite the previous one.
    Now that I have had a second look at the functions I listed, it seems I was mistaken.
    These are not affecting each other in the manner I thought.
    Last edited by codeslave; 08-29-2011 at 09:29 PM.

  • #8
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,201
    Thanks
    80
    Thanked 4,453 Times in 4,418 Posts
    As he said, he was mistaken. In point of fact, there are several things that are added via the onload event. That's not where the problem is.

    I don't *know* it is in motools.js, but that compression code is pretty generic and it is being invoked from motools.js line 21 at the point the failure occurs. At least, that's what I got out of FireBug's stack trace.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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