SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error when trying to get two plugins to work on the same page

    Hi Folks,

    I'm trying to get a caption slider (capty) and a image carousel (blueberry) to work on the same page.

    Both plugins dont work, I've included the appropriate files. Can anyone please help?

    http://www.mharrisweb.co.uk/index.html

    I get various errors, mainly,

    Code:
    Error: TypeError: $ is not a function
    Source File: http://www.mharrisweb.co.uk/index.html
    Line: 21

  2. #2
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The correct link to the page is:

    http://www.mharrisweb.co.uk/indexnew.html

  3. #3
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help me get the two javascripts to work together?

    I have tried this but it still doesnt work:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    <script src="http://www.mharrisweb.co.uk/wp-content/themes/skeleton/javascripts/responsiveslides.min.js"></script>

    <script type="text/javascript">
    var jQuery_1_8_2 = $.noConflict(true);
    </script>

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.mharrisweb.co.uk/wp-content/themes/skeleton/javascripts/jquery.capty.min.js"></script>

    <script type="text/javascript">
    var jQuery_1_5_2 = $.noConflict(true);
    </script>
    <script>
    $(document).ready(function(){

    $jQuery_1_5_2('#default').capty();

    // Slideshow 1
    $jQuery_1_8_2("#slider1").responsiveSlides({
    maxwidth: 800,
    speed: 800

    });

    });
    </script>

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by mattastic View Post
    Can anyone help me get the two javascripts to work together?
    Normally a jquery script from an earlier version is okay running on a later version of the jQuery library.
    Is there any particular reason why you can't use 1.8.2 for both scripts? That would make your life ever so much simpler.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much for your reply.

    I've managed to get the page working using one script locally. But when I upload to the webspace, I keep getting errors with my images. Can you help?

    Here is my page:

    http://www.mharrisweb.co.uk/demo.html


    Timestamp: 08/11/2012 10:41:15
    Error: Image corrupt or truncated: http://www.mharrisweb.co.uk/images/people.jpg
    Source File: http://www.mharrisweb.co.uk/images/people.jpg
    Line: 0

    Timestamp: 08/11/2012 10:41:15
    Error: Image corrupt or truncated: http://www.mharrisweb.co.uk/images/1.jpg
    Source File: http://www.mharrisweb.co.uk/images/1.jpg
    Line: 0

    Timestamp: 08/11/2012 10:41:16
    Error: Image corrupt or truncated: http://www.mharrisweb.co.uk/images/3.jpg
    Source File: http://www.mharrisweb.co.uk/images/3.jpg
    Line: 0

    Timestamp: 08/11/2012 10:41:16
    Error: Image corrupt or truncated: http://www.mharrisweb.co.uk/images/2.jpg
    Source File: http://www.mharrisweb.co.uk/images/2.jpg
    Line: 0

    Timestamp: 08/11/2012 10:41:16
    Error: Image corrupt or truncated: http://www.mharrisweb.co.uk/wp-conte...keleton/bg.png
    Source File: http://www.mharrisweb.co.uk/wp-conte...keleton/bg.png
    Line: 0

  6. #6
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by mattastic View Post
    Thanks very much for your reply.

    I've managed to get the page working using one script locally. But when I upload to the webspace, I keep getting errors with my images. Can you help?
    Well - where are those images on your server?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •