that is one of the functions below,it updates its entries and then the updateall() function is linked to a mysql query to update all. I am just so confused.
Code: Select all
function updateEntries(){
//just for the fade effect
var scrollPosition = $(window).scrollTop(); //+ save scroll position
var name = inputUser.attr("value");
var topic_id = inputTopic_id.attr("value");
$.ajax({
type: "POST", url: "process.php", data: "action=updateEntries&topic_id=" + topic_id + "&name=" + name,
complete: function(data){
$("#test123").html(data.responseText); //this is the problem
$(window).scrollTop(scrollPosition); //+ scroll to previously saved position
updateall();
}
});
}