rendered paste bodyfunction ajaxReq(q_id, pos, dir)
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
document.getElementById("container").innerHTML = xmlHttp.responseText;
//alert(xmlHttp.responseText);
}
}
xmlHttp.open("GET","../proc.php"+'?ques_id='+q_id+'&pos='+pos+'&dir='+dir ,true);
//xmlHttp.open("GET", "../procs.php", true);
xmlHttp.send(null);
//alert("Question ID :: "+q_id+"\nPosition :: "+pos+"\nDirection :: "+dir);
}