I'm using mCustomScrollbar to styling the scroll bar but got some issue. The effect will not appear when I change the page dynamically.
<link rel="stylesheet" href="css/jquery.mCustomScrollbar.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
And I using this function to change the page.
function processResponse() {
if (request.readyState == 4) {
if (request.status == 200) {
var response = request.responseText;
document.getElementById("content").innerHTML = response;
}
}
}
I didn't change any code in js file. Also, it's work if I directly enter to the page. Is any function I need to add in processResponse function?
In the dynamic page: I added the class called "content mCustomScrollbar" that is required by the mCustomScrollbar
<div id="content" style="position: absolute;left: 7%;right: 7%">
<div id="id_div_paragraph" class="content mCustomScrollbar" style="position: absolute;left: 450px;float:left;/*padding:20px 28px;*/padding-top: 20px;padding-left: 28px;padding-bottom: 20px;padding-right: 15px;font-size:18px;overflow: auto;background-color:#FFFFFF;opacity:0.75;">
Content Here....
</div>
Thank you.