[jQuery] Re: jQuery called twice, if I delete one, all jQuery scripts stop working

2009-09-13 Thread Alex Weber

did you get it to work?

On Sep 12, 1:33 pm, Adrian Chen ac...@mac.com wrote:
 On Sep 12, 10:09 am, Alex Weber alexwebe...@gmail.com wrote:

  That's totally weird!

  I would start over, delete all the include files and add it once
  before any other external js script.  Test it and gradually add the
  others one by one afterwards... This is really a weird problem, its
  the best I can think of because this hasn't happened to me!!

  Also, re-download jQuery and check for any conflicts the other files
  might have.  Try calling jQuery.noConflict() at any point after jQuery
  and the other libraries have been loaded!

  Alex

 After some testing, found out the culprit; one of the js files that
 were in the list. I got no clue what could be triggering it, this is
 the code inside the js file that is giving the issue:

 var j = jQuery.noConflict();

 j(document).ready(function()
 {
         j('a#content-link').click(function()
         {
                 j('#content-div').toggle(400);
                 return false;
         });

 });

 That's from this 
 scripthttp://www.studioyucca.com/2008/10/03/hideshow-content-with-jquery/


[jQuery] Re: jQuery called twice, if I delete one, all jQuery scripts stop working

2009-09-12 Thread Alex Weber

That's totally weird!

I would start over, delete all the include files and add it once
before any other external js script.  Test it and gradually add the
others one by one afterwards... This is really a weird problem, its
the best I can think of because this hasn't happened to me!!

Also, re-download jQuery and check for any conflicts the other files
might have.  Try calling jQuery.noConflict() at any point after jQuery
and the other libraries have been loaded!

Alex

On Sep 12, 11:33 am, Adrian Chen ac...@mac.com wrote:
 I got this at the bottom of a website:

 script type=text/javascript src=/js/jquery.js/script
 script type=text/javascript src=/js/jquery.cycle.all.js/script
 script type=text/javascript src=/js/slider.js/script
 script type=text/javascript src=/js/newnav.js/script
 script src=/js/jquery.js type=text/javascript/script
 script type=text/javascript src=/js/whymac.js/script

 If you notice, jquery is called twice. If I delete either one,
 anything that works with jQuery stops working.


[jQuery] Re: jQuery called twice, if I delete one, all jQuery scripts stop working

2009-09-12 Thread Adrian Chen

On Sep 12, 10:09 am, Alex Weber alexwebe...@gmail.com wrote:
 That's totally weird!

 I would start over, delete all the include files and add it once
 before any other external js script.  Test it and gradually add the
 others one by one afterwards... This is really a weird problem, its
 the best I can think of because this hasn't happened to me!!

 Also, re-download jQuery and check for any conflicts the other files
 might have.  Try calling jQuery.noConflict() at any point after jQuery
 and the other libraries have been loaded!

 Alex

After some testing, found out the culprit; one of the js files that
were in the list. I got no clue what could be triggering it, this is
the code inside the js file that is giving the issue:

var j = jQuery.noConflict();

j(document).ready(function()
{
j('a#content-link').click(function()
{
j('#content-div').toggle(400);
return false;
});
});

That's from this script 
http://www.studioyucca.com/2008/10/03/hideshow-content-with-jquery/