javascript - Missing scrollbar with jScrollPane -
i posted question focused on problem, nobody answered. re-post attention back.
my old post can found here: link
my js code:
$(document).ready(function() { $('.con').load('views/startseite.html',function(){ $('.scroll').jscrollpane(); }); $('nav a').click(function(e) { e.preventdefault() var inc = $(this).attr('href').split('/').pop().split(".").shift(), href = "views/" + inc + ".html" $('.con').hide().load(href, function(){ $('.con').fadein('fast',function(){$('.scroll').jscrollpane();}); }) document.title = 'robert-richter.com | ' + firsttouppercase(inc) location.hash = inc return false; }); function firsttouppercase( str ) { return str.substr(0, 1).touppercase() + str.substr(1); } });
my css of scrollbox:
.scroll { position: relative; right: 0; width: 415px; height: 422px; overflow: auto; }
live exampe of page current code: link
i dont know why guys want read question, here go: can please me this?
sometimes jquery causes problem. please make sure you're not using 1.8 version (1.7 example works fine me). don't know exact problem of drupal jquery 1.8 or higher it's difficult find defect since browser , drupal log messages aren't showing error logs. think it's because jquery existing drupal isn't able handle correct way.
Comments
Post a Comment