i have a gallery page it is working properly that i want but after using ajax XMLHttpRequest object, image caption and slideshow not working, basically css and javascript file not working fine.
<script>
function filterSelection(data) {
var xmlhttp;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
// change content from div
document.getElementById("imageContainer").innerHTML = xmlhttp.responseText;
}
};
xmlhttp.open("GET", "get.php?menu_title=" + data, true);
xmlhttp.send();
}
</script>
not working fineunfortunately that doesn't say much - you'll need to expand your description of the error - look in the browser developer console, what errors if any appear there. chances are you are overwriting something important when you replace the innerHTML of the element with id=imageContainer