views:

150

answers:

1

Hey guys,

I don't get it. I've coded some effects with jquery. Locally it works as intended. Uploaded on my server it doesn't. The jquery fading effect flickers and the jscrollpane doesn't work either.

function sitemapChangeSubMenu(menupunkt,submenupunkt,subdiv) {

   var numRand = Math.floor(Math.random()*101); 
   $('#mainContent').fadeOut('fast', function(){ 
      $("#mainContent").load(menupunkt+".html?"+numRand, function(){ 
         $("#htmlContainer").load(
             submenupunkt+".html?"+numRand+" div#"+subdiv, enableScrolling);
      });
   });

   $('#mainContent').fadeIn('slow');
   return false;
}

That's the function the menu uses to load the next category.

But i think this should all be correct. Do you know something similar?

Would be so great if anyone could help me! Thank you

A: 

maybe something with security settings in your browser (.load(menupunkt+".html?"). what does console say?

valya