is anyone here good with it?
i got this script on krissales.com that I'm working on. I've figured out the ajax hash tagging, it works perfectly. However I'm customizing the fade in, fade out **** and I got part of it working. it'll load the page twice, if you see what I mean. I just want it to load once, on fade in, and once on fade out, however it does it twice.
Does anyone know what the hell it is, that I'm doing wrong?
This is the code I have:
Code:
function page_load($href) {
if($href != undefined && $href.substring(0, 2) == '#/') {
$('#content').load($href.substring(2)); // replace body the #content with loaded html
$('#content').fadeOut('slow', function() {
$('#content').fadeIn('slow');
});
the full core is at:
http://www.krissales.com/_lib/_js/core.js