look at this script please
$("#change").click(function()
{
var val = $("#new_title").val();
if(val == '')
{
alert("Նշեք խնդրեմ անունը");
return false;
}
else
{
$.post
(
"change_title.php",
{id: id, lang: lang, val: val}
);
window.location.reload();
}
});
where id and lang are global variables.
in change_title.php i'm uploading the table.
i want to show changes after editing, so i use window.location.reload(); function, but it doesn't work. if i delete window.location.reload(); function, it works fine.
what is the problem?
Thanks