Using jQuery and Prototype together while avoiding the dreaded element.dispatchEvent error

by Thomas Beutel

Here is what I do to avoid the dreaded “element.dispatchEvent is not a function” error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls.

 <!--  Set up jQuery and prototype together  -->
 <script src=""></script>
 google.load("jquery", "1.3.2");
 google.load("prototype", "");
 google.setOnLoadCallback(function() {
  jQuery('#helpbutton').click( function(){