SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WordPress jQuery issue

    Hi,
    I've been using the jQuery plugin as part of the WordPress Multi-level navigation plugin which I made a while back (see signature for link). I got the code from Superfish page and it works flawlessly - as long as the user doesn't have any other plugins activated which use jQuery.

    I've been trying to set my plugin to use the wp_enqueue_script tag in WordPress to ensure that jQuery is not loaded twice, however the built in WordPress one does not seem to work with my plugin.

    I know nothing of Javascript or jQuery, I just know that the scripts work - except this time they aren't The javascript file called by WordPress does not look the same as the one I downloaded, despite both being jQuery 1.2.3.

    Here is the file included with MY plugin ... http://pixopoint.com/demo/test/wordp...y-1.2.3.min.js

    And here is the one outputted by WordPress ... http://pixopoint.com/demo/test/wordp...y.js?ver=1.2.3

    Any ideas where I'm going wrong here?

    Thanks for your help

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The one included in Wordpress is the packed version of the script and your script is the "minified" version. (see different versions here) - This shouldn't effect the way it works though... weird...
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JimmyP View Post
    The one included in Wordpress is the packed version of the script and your script is the "minified" version. (see different versions here) - This shouldn't effect the way it works though... weird...
    That's what I thought for a start, but it worked with one and not the other

    I'll have another look tonight and see if I can fix it.


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
  •