I found and fixed the problem for Wordpress. In the header, I had the inline code: Code: <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function() { $j('#tab-panel1 ul').tabs({ fxFade: true, fxSpeed: 'fast' }); $j('#tab-panel2 ul').tabs({ fxFade: true, fxSpeed: 'fast' }); $j('#container-11 ul').tabs({ event: 'mouseover' }).find ('a').click(function() { return false; }); }); </script>
This was the cause for crashing the jQuery. Once I wrapped the code in jQuery().ready(function(){ code here }); it worked. I will offcourse move this scrips to a js. file Now for doing the same test with Drupal. Steven On 2 Jan, 02:39, Ricardo Tomasi <ricardob...@gmail.com> wrote: > I think Wordpress loads prototype.js as well, try protecting your > jQuery script: > > jQuery.noConflict()(function(){ > $('a').click(... > > }); > > On Jan 1, 7:29 pm, spstieng <spsti...@hotmail.com> wrote: > > > > > Tha path is correct. I use FireBug to debug the javascript and I can > > see the jQuery script executing. > > I was executing this code inside Wordpress CMS and Drupal CMS. > > > To test further, I created a test site tha only contains the index.php > > It worked perfectly. > > > When debugging I see that it first calls the jQuery when executing > > this line: > > $(document).ready(function() { > > > Then I see it use jQuery one more time executing this line: > > $("a").click(function() { > > > Doing the same debugging in WordPress and Drupal, it only executes the > > first line, not the second line. > > > Firefox is not giving me any javascript error, bit IE is giving me > > one, but it makes no sense: > > Line: 4 > > Char: 3 > > Error: Object doesn't support this property or method > > Code: 0 > > Url:http://localhost/mysite/test > > > On 1 Jan, 19:28, "Matt Quackenbush" <quackfu...@gmail.com> wrote: > > > > Probably because the path to jQuery is incorrect and therefore jQuery is > > > not > > > actually loaded. > > > > On Thu, Jan 1, 2009 at 5:26 AM, spstieng wrote: > > > > > Now, clicking Test B links dislays the 'Hello World' alert. > > > > But nothing happends when I click Test A. Why is that?