Skip to:
Content
Pages
Categories
Search
Top
Bottom

jquery conflict – need help plz


  • nit3watch
    Participant

    @nit3watch

    I took some code and turned them into wp plug-ins: a twitter style drop-down login/out and a image/content slider

    Im not too clued up on jquery and so on but Im getting a conflict with the two plugins. When they are both activated, the slider works but the twitter-style drop-down, when clicked gives a 404 error.
    Ive tried reading up and stuff but its beyond me. Read that OnLoad is a common prob but I don’t know how to rectify it if that was the case..

    Iv’e narrowed it to this js file ( http://pastebin.com/2CmvN7Kt ). If it sounds like a common problem could some one with js experience have a look and see what could be the prob?

    The twitter style login form’s js is nice and clean, mebe could apply something to it to stop the conflict? ( http://pastebin.com/DgyHDgyX )

    let me know if you need more info

Viewing 2 replies - 1 through 2 (of 2 total)

  • nit3watch
    Participant

    @nit3watch

    after reading some more, is using noConflict the right approach?

    I’ll try playing around though some help could save me a few hours :P
    Let me know, thanks.


    Toby Cryns (@themightymo)
    Participant

    @themightymo

    You do want to use no-conflict, but sometimes for testing purposes it is easier just to import jQuery manually and figure out the no-conflict stuff later before going live.

    One thing that makes running no-conflict mode easier is setting up a variable at the top of your .js file like so:

    `$j=jQuery.noConflict();`

    http://www.mkyong.com/jquery/jquery-is-not-working-in-wordpress-solution/

    I hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jquery conflict – need help plz’ is closed to new replies.
Skip to toolbar