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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript error in Joomla

    Hi, my website name is marutiindia.in. I am using lof k2 scroller module along with image magnifier plugin developed by Vtem. The problem is I get JS error in scroller module JS file when I try to enable both these extensions at the same time. If I disable image magnifier plugin there is no error. I don't know what are these errors but I get the following error:
    Code:
    Uncaught TypeError: Object #<Object> has no method 'getElement'
    Class.initialize                                         script_12.js:27
    (anonymous function)                              mootools-more.js:29
    i.extend.$owner                                      mootools-core.js:136
    (anonymous function)                               mootools-core.js:131
    (anonymous function)
    Please help me.
    Thanks.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    That is a common problem if you try to use two different Javascript frameworks together. I do not know how you can overcome it. Stick with just one framework.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    That is a common problem if you try to use two different Javascript frameworks together. I do not know how you can overcome it. Stick with just one framework.
    Thanks Philip for your quick reply. Actually I need to use both these extensions for my website. I don't know what actually is the issue with using both of them simultaneously. Can you please tell me what does this error mean? Is there any way I can keep them both?

    Thanks.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    Quote Originally Posted by kumar1234 View Post
    Can you please tell me what does this error mean? Is there any way I can keep them both?

    Thanks.
    I don't know the exact meaning of the error message, but as I say AFAIK you cannot have both of these on the same page. You will have to find an alternative for one or the other.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    I don't know the exact meaning of the error message, but as I say AFAIK you cannot have both of these on the same page. You will have to find an alternative for one or the other.
    Thanks again. Both these scripts do not apply on the same page. One script applies on the homepage and the other on a different page. So I think there might be some way to use them both. But I don't know how. Can you please guide me?

    Thanks.


  •  

    Tags for this Thread

    Posting Permissions

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