1 - I used to prevent the default action of an anchor tag upon click by doing the following...
$('a').click(function() { /*stuff*/ return false; });
But then I decided to condense code by declaring a function that I could call within the click method since I use the same block of code elsewhere. So now it looks like...
$('a').click(myFunc(var1, var2));
And even though the last line of myFunc is 'return false;' the links still go through. What am I doing wrong here?
2 - The slideDown() function in jQuery doesn't seem to be animating quite right. The way I've seen it is that the box reveals itself by stretching or falling downwards. The top of the box is stationary while the bottom moves and stretches down. The way that I'm seeing it animate however is that the box starts off as a thin rectangle and both top and bottom stretch up and down, respectively, until the box is at its appropriate dimensions. Is there a certain setting I need? Is maybe my CSS influencing this?
3 - I'm getting a laundry list of Javascript warnings in my console (using Firefox 3.6 with Firebug and Web Developer add-ons) and they all come from jquery.min.js. I've seen
- Reference to undefined property e[b] line 38
- Reference to undefined property a[++e] line 30
- Reference to undefined property f.queue line 136
- Reference to undefined property f[b] line 113
And more.
http://schnell.dreamhosters.com/folio/
This is the website I'm working on.