Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 12

CurtisOdenMatthew2Dericgilletteleafmonster422 +7 guests

JQuery

This discussion is related to the JQuery addon.
JQuery
«134

Comments

  • Uploaded version 1.1.3 of JQuery.
  • Posts: 1,880
    I believe conflict with other library are due to the use of the $ that many library use.

    jQuery don't have to use it. You just need to add at the end the jQuery file//You now only can use jQuery with jQuery();
    jQuery.noConflict();
    or//you now can use jQuery with jQuery() or $j()
    $j() = jQuery.noConflict();


    When you use jQuery plugins, you have to be sure that the use jQuery() and not $(). For the official plugins, I think that only Thickbox use $(). That's easy to fix.

    see jQuery page: Using jQuery with Other Libraries
  • Posts: 1,799
    i'm using the third option
    jQuery.noConflict();

    // Put all your code in your document ready area
    jQuery(document).ready(function($){
    // Do jQuery stuff using $
    $("div").hide();
    });


    stash it would be nice if ur extension version matches the official jquery versions
    so 1.1.3 should be with 1.1.3 jquery
  • Posts: 2,610
    I know it would be nice, but then how do I fix problems with my extension? ;)
  • Posts: 669
    Use dates as version numbers. 1.1.2.070317?!?

    {tangent} did you see this: Interface Elements for JQ and the latest JQuery-Ext alpha by Jack Slocum? Whoo! {/tangent}
  • Posts: 49
    Stash -
    I'm the one who reported the page reordering conflict with the Page Manager, but I don't believe JQuery is the problem - I think JQThickBox is causing the issue. I've tried it with JQuery version 1.1.2 enabled (with JQTB disabled), and I am able to reorder pages just fine. If I enable JQTB, then I cannot reorder pages.
  • Posts: 2,610
    Dinoboff, I'm sure you're right, it took me a while to figure out exactly what all the instructions on jquery.com meant. I'll take a closer look at that and see about modding my variation of Thickbox to replace $().

    Tom, that's a thought. At this point though I'd be going back a version number, so I wonder, will this screw up the updates system with the add-ons site?
  • Posts: 1,880
    You should add $j() = jQuery.noConflict(); to jquery.js in the jQuery extension and replace the "$" by "jQuery" in Thickbox.js.
  • Posts: 50
    this extension gives java error on ie7 it says "error: 'jQuery' is undefined"
  • Posts: 2,610
    Dinoboff, using that I get$j is not defined
    jquery.js Line 2

    However, using this seems to do the trick:var $j = jQuery.noConflict();
    Any particular reason I shouldn't use this?
  • Posts: 1,880
    lol, sorry I just forgot the 'var'.
  • Posts: 1,799
    So ur going to package jquery with conflict resolution
    u cannot just use addstring, cause all addscripts appear first then addstrings appear.
    no matter what the sequence u enable it.
  • Uploaded version 1.1.4 of JQuery.
  • Uploaded version 1.1.5 of JQuery.
  • Posts: 190
    How about updating to the latest jQuery 1.1.3.1?
  • Uploaded version 1.1.6 of JQuery.
  • Posts: 2,610
    Thanks for the heads up skube :)
  • Uploaded version v12-1.1.4 of JQuery.
  • Posts: 2,610
    v12-1.1.4 Released 2007-08-27

    + Updated the JS library to jQuery 1.1.4.
    + Changed the version numbering scheme to a simple RELEASENUMBER-JQUERY_VERSION_NUMBER.
    So for this release — v12-1.1.4 — the v12 refers to release 12 (count 'em) using version 1.1.4
    of the jQuery JS library. Hopefully this will be an improvement and less confusing for people.
    If you have a view on this one way or another,please leave feedback in the addon discussion.
  • Posts: 1,290
    stash, please check the jqmedia thread for a bugfix.
  • Posts: 2,610
    I can't see a bugfix for the JQuery extension in the JQMedia thread — please link directly to the comment in quesiton (use the #numbers to the right of the blockuser/comment links on the right of the comment).

    P.S. Mark, uploading RAR files no longer seems to work as I get the following error:
    You are not allowed to upload (JQuery-v12-1.1.4.rar) the requested file type: application/force-download
  • Posts: 1,290
    it's not a fix for JQuery, it's a fix for JQMedia.

    JQMedia # 81
  • Posts: 2,610
    Looks like a great fix - but it's not my extension unfortunately, so I can't do anything to it since I'm not an admin. Have you tried contacting MSB directly?
  • Posts: 1,290
    doh! sorry, i thought you were the author.
  • Uploaded version v13-1.2.1 of JQuery.
  • Posts: 2,610
    v13-1.2.1 Released 2007-09-19

    + Updated the JS library to jQuery 1.2.1.
    + Changed the default jQuery library to a minified version instead of packed
    (for clientside decode speed up). I have also included the packed, original
    uncompressed and gzip versions of all the above. If gzip works for you, the
    best one is the gzipped min file (even though it's 1kb bigger than the
    gzipped pack file). Just edit line 29 to whatever suits you best
    $Head->AddScript('extensions/JQuery/jquery-1.2.1.min.js');
    - Removed the /src/ directory from the package as it is now unecessary.
  • Posts: 157
    I'm having a problem here Luke...
    After upgrading to the latest version, JQMedia won't work. See this page, the YouTube video isn't showing up and I made sure to disable all the extensions, enable JQuery first then the rest.

    Any thoughts?!
  • Posts: 2,610
    If you're using 0.5.3 try 0.5.1 and let me know...
  • Posts: 157
    I was using 0.5.1 and now I'm trying 0.5.3! :)
  • Posts: 179
    try including the 1.1.4 compatibility script with this perhaps.
Sign In or Register to comment.