FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » JQuery Update (Resolves Jquery conflicts with other libraries.)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
JQuery Update [message #165049] Wed, 20 April 2011 14:19 Go to previous message
Dayo is currently offline  Dayo   Iraq
Messages: 101
Registered: April 2011
Karma:
Senior Member
Two diff files attached for consideration.

Basically, Joomla uses Mootools and FUDforum, JQuery both of which are in conflict with each other (they both use the same "$" shortcut). I have taken care of this in the script but it will be better to load non-conflicting files.

1. js.diff simply adds "$jquery = jQuery.noConflict();" to the end of jquery.js and changes all the "$" calls in lib.js to "$jquery"

2. js-2.diff does the same as js.diff for lib.js and for jquery.js, is just a copy of JQuery 1.5.1 with the "noConflict" function at the end.

JQuery 1.5.1 works fine with the current templates I looked at (not all though) so might be a good idea to move up to this version for the next release.
  • Attachment: js.diff
    (Size: 9.75KB, Downloaded 1218 times)
  • Attachment: js-2.diff
    (Size: 167.60KB, Downloaded 1245 times)

[Updated on: Wed, 20 April 2011 14:21]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function to send emails?
Next Topic: Install.php suggestion
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 04 08:21:07 GMT 2024

Total time taken to generate the page: 0.04939 seconds