how to use in joomla no.conflict.
http://extensions.joomla.org/extensions/core-enhancements/scripts/7230
This plugin is used to load jQuery javascript library, and set "no conflict" mode to allow usage with mootools, and other libraries. No conflict mode removes the "$" operator from jQuery, allowing other libraries to use that operator.
The $
is used to represent the jQuery
keyword. Now many other javascript libraries uses that symbol to represent something that is specific to that library too. If you ever need to use those libraries together with jquery, it will be difficult since it will cause a conflict.
To avoid this conflict, the developers of the jquery has provided a function, and by calling ith you can relinquish jquery's control over the $
sign. The method is jQuery.noConflict()
. All the $ symbols used in all the lines following that function call will have no meaning to jquery, which means you won't be able to write something like $('button').click(...);
, you will have to write jQuery('button').click(....)
. So the use of jquery's no conflict isn't specific to joomla or any other framework.
For further references, go here.