I'm using drupal_add_js() to load some external js:
drupal_add_js('http://jquery-accordion.googlecode.com/svn/trunk/jquery.accordion.js', 'external');
This produces 'TypeError: $ is not a function' errors because Drupal uses jQuery in no-conflict mode.
So I think the only solution is to copy the code, wrap it in this function and call it locally:
(function ($) {
// Original JavaScript code.
})(jQuery);
I wondered whether there was a trick to still be able to directly use external js?