Thread: jquery issue
View Single Post
Old 11-08-2012, 06:13 AM   PM User | #1
Sniickerz
New Coder

 
Join Date: Oct 2010
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Sniickerz is an unknown quantity at this point
jquery issue

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
Sniickerz is offline   Reply With Quote