I just started working on the following site: http://www.psykotaktyle.com/
I have downloaded the latest jQuery (1.6.2) and jQuery UI (1.8.14).
The only other JS code on the page is:
function get_url_param(param, url) {
param = param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+param+"=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(url);
if( results == null )
return '';
else
return results[1];
}
$(document).ready(function() {
$('ul.menu li').click(function() {
var href = $('a', this).attr('href');
var content = get_url_param('page', href);
if (!content) content = 'home';
$('.slide-item').animate({top:'1000px'}, 500)
//$('#content').fadeOut();
//alert(content);
return false;
});
});
For some reason I get a JS error on the page when clicking on a menuitem.
Uncaught TypeError: Not enough arguments jQuery-1.6.2.min.js:18
I don't have a clue what went wrong here so I hope someone can tell me what is causing this error.