i know ajax per inke site pe problem he ki ye data base me value unsert karte he to ajax instatntly populate nahi karta he balki logout karne ke baad karta he. i have to fix it
inka code he
function get_sub_menu()
{
var at = document.add.Atype.value;
var id = document.add.menu.value;
document.add.order.value = “”;
document.add.link.value = “”;
document.add.new_name.value = “”;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert (“Your browser does not support AJAX!”);
return;
}
if(id == “-1″)
{
var url=”get_main_menu.jsp”;
url=url+”?q=”+at;
}
else
{
var url=”get_sub_menu.jsp”;
url=url+”?q=”+at+”&v=”+id;
}
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open(“GET”,url,true);
xmlHttp.send(null);
}