Results 1 to 2 of 2

Thread: jquery problem

  1. #1
    Join Date
    Jan 2012
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jquery problem

    Hi,

    I have light box in my site and dropdown menu with javascript.
    But now it is not working. It is display error in consol as below.

    var cssdropdown={<+W")

    jQuery is not defined

    Site link : http://www.laparoscopyhospital.com/

    can anyone help me?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    There could also be other problems but:

    http://www.laparoscopyhospital.com/javascript/jquery.min.js

    is corrupt. Easiest way to test if this is the only problem would be to replace:

    HTML Code:
    <script type="text/javascript" src="javascript/jquery.min.js"></script>
    with:

    HTML Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
    I see the page is also using MooTools (for the visual slider thingy). You may have to put jQuery into noConflict mode to have it and the MooTools library both available. Combining jQuery and MooTools on the same page can be tricky sometimes and sometimes impossible, often it's fairly easy.

    And if that's the jQuery Lightbox I'm familiar with, jQuery Slimbox2 would be a better choice - And there is a version of Slimbox that uses MooTools (but I'm not sure which version of MooTools it might require). If you used that and it worked, you wouldn't even need jQuery unless it's also use by something else on the page (the menu?).

    If this is the menu:

    http://www.laparoscopyhospital.com/chromejs/chrome.js

    It's also corrupt. Both of the corrupt scripts look like they may be compressed via gzip or similar but that the browser isn't being told that. So, as I say, there could also be other problems.

    Another way this could be approached is that there are jQury scripts similar to the visual slider thing. If you used one of those for that, you should be able to get rid of MooTools.

    As I say though, the two probably can work together.

    But whatever you do, the corrupt scripts need to be fixed.
    Last edited by jscheuer1; 05-11-2012 at 03:26 PM. Reason: detail
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •