That’s pretty much it. When I try to use the getter getContentPositionY(), the whole script freezes. Any ideas? Or any other way I can get jscrollpane scrollers position would be great.
Here’s my code:
$(document).ready(function() {
$('#text-content').load(function() {
$('#right').jScrollPane({
verticalDragMinHeight: 10,
verticalDragMaxHeight: 10,
horizontalDragMinWidth: 10,
horizontalDragMaxWidth: 10
});
});
var pane_api = $("#right").data('jsp');
alert(pane_api.getContentPositionY());
});
And the markup:
<div id="right">
<img src="pics/BIOGRAPHY/tretji_stolpec/text_bio.png" id="text-content" />
</div>
CSS:
#right {
float:left;
width:50%;
height:95%;
margin-left:35px;
margin-top:15px;
margin-bottom:15px;
overflow:auto;
}
Thanks for any suggestions. Cheers, Val
you are probably misinterpreting this line:
load needs an url where to load from. you are just giving a function. what do you want to achieve???