Jesus Christ, it's one thing not understanding what I said and another thing pretending that you have the absolute truth :s OK, let's try again, with instructions for idiots. If you don't mind copying and pasting between forums, Tim :)
As per
the jQuery.noConflict() documentation there are two ways to use jQuery.noConflict:
1. Without passing a parameter, or passing the parameter false, i.e. jQuery.noConflict(false); This is required in order to workaround conflicts with other JavaScript libraries which are also using the $ object, e.g. mooTools. HOWEVER!!! Two BIG "buts":
a. This will ONLY work if the call to noConflict follows the loading of jQuery and BEFORE mooTools is loaded. In any other case, hell may break loose (at least that's what was going on with mooTools 1.11 and 1.2 - I don't know if it's fixed with 1.3).
b. This will work ONLY if NO OTHER copy of jQuery is being loaded on the page.
2. By passing the optional parameter, you can "trap" jQuery in an object for your liking. For example: var myjQ = jQuery.noConflict(true); From that point, all calls to jQuery have to use that object, e.g. instead of jQuery('#foobar') use myjQ('#foobar'). Why do that? Because your own copy of jQuery (this one specific version nonetheless!) is now fully private and isolated not only from other JavaScript frameworks, but also from other copies of jQuery on the same page.
The big catch is, again, that this has to be called BEFORE any other JS framework or another copy of jQuery is loaded. Obviously, using the Joomla! API to link to jQuery's minified file and then use the API to insert a script can not guarantee that, ergo is bound to cause a problem. That's why he's having a problem.
Now, if you're wondering what's the safest way to load jQuery in noConflict mode and, in fact, use a private object, the solution is simple. Always use your local copy of the jQuery minified source file with the noConflict line at its bottom. Otherwise, he can create an in-place replacement of the page source as I was doing in Akeeba Backup 3.0 and 3.1, registering on-the fly a plugin handler for the onAfterRender event. It worked perfectly with both a local copy of jQuery and fetching a copy off Google. If you want the code and can't find an old copy of Akeeba Backup, please let me know and I'll be more than happy to share.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!