I have a jquery ui slider in place which scrolls the content of a div when moved, here's the code:
var paraHeight = $("#descPara").height();
var maxScroll = paraHeight - 250;
var activeScroll;
if (maxScroll <= 0){
//do nothing
} else {
$("#slider2").slider({
orientation: "vertical",
min: 0,
animate: true,
max: maxScroll,
value: maxScroll,
slide: function(event, ui) {
$("#descPara").stop().animate({'bottom': (-ui.value + maxScroll) + 'px'}, 1000);
}
});
}
This works fine in Firefox but not in Safari/Chrome. What happens in Safari and Chrome is, the handle of the slider when the page loads is non existent until you click on the slider rail and when it does appear it cannot be dragged, hower you can still scroll by clicking along the slider rail.
This problem however is only apparent when used in the cms joomla, outside of this cms it works perfectly in all browsers. Weird.
Has anyone had any similar problems? it would be really helpful, thanks.