I have an ajax call()
to load some specific information about a product:
function fnShowDetProd(code, size) {
mod.open("GET", "control/_showdetailproduct.asp?cod="+code+"&size="+size, true);
mod.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
mod.onreadystatechange = function() {
if (mod.readyState == 4) {
document.getElementById("showDetails").innerHTML = mod.responseText;
}
};
mod.send(null)
}
I call this function in my row onClick
event:
fnMostDetProd(selectedRow[0], selectedRow[1]);
Where selectedRow[0] and [1] are parameters of the clicked line.
I'm wondering if it's that possible to add a jQuery
effect like fadeIn()
to show the information retrieved on showDetails
element.
Using jQuery 1.8.3
and jQuery ui 1.10.1
.