Hello, I just made the jump from Prototype to jQuery and so far I'm really enjoying it. However, some parts of my website are still using the Prototype library and I don't have the time or resources at the moment to recode everything using the jQuery framework.
The problem I have is that I can't seem to use both libraries on the same page with the 1.2.6 release of jQuery. Here's a very simple example of what I'm trying to do: 1) I load jQuery core 1.2.6 2) I load Prototype only if the page needs it (through a PHP framework) 3) At the top of my page: after the jQuery <script> includes, but before the Prototype ones (I don't think it matters?): <script type="text/javascript"> jQuery(document).ready(function($){ var $j = jQuery; $j("#userImg").hide(); //jQuery("#userImg").hide(); }); </script> This short script should hide a div with an ID of "userImg". However, all I see is one of those two errors (they seem to appear randomly) in the Firebug error console. Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: {WEBSITE}/ jQuery/jquery.js :: anonymous :: line 871" data: no] Source File: {WEBSITE}/jQuery/jquery.js Line: 22 OR Error: [Exception... "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: "{WEBSITE}/jQuery/ jquery.js Line: 251"] Source File: {WEBSITE}/jQuery/jquery.js Line: 12 I tried all the methods described here (http://docs.jquery.com/ Using_jQuery_with_Other_Libraries), but with no luck. The same two errors always pop in Firebug when using jQuery 1.2.6. The exact same piece of code works perfectly when I load the 1.2.4 version of jQuery instead of the 1.2.6 (1.2.5 doesn't work either). Can anyone think of a way I could fix this and use 1.2.6 (and further versions). I would hate being stuck with an older version, especially when updates to jQuery are frequent. Thanks, mike