What to do after send request to server?
<p>I want to insert data in database, but I used jquery, so cannot simply direct insert in database.I have to use ajax http request..I've already type ajax http request in the js file in my visual studio 2008....then I send request to server..After that what to do?How am I going to insert the data in database? help me!!! </p>

<p>This is my ajax http request:</p>

<pre><code>// Define http_request
 var httpRequest;
try
{
    httpRequest = new XMLHttpRequest(); // Mozilla, Safari, etc
}

catch(trymicrosoft)
{
 try
    {
        httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
    }


    catch(oldermicrosoft)
    {
        try
        {
            httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(failed)
        {

        httpRequest = false;
        }
       }
      }

      if(!httpRequest)
      {
        alert('Your browser does not support Ajax.');

        return false;

      }

      //===============================
      // Action http_request

      httpRequest.onreadystatechange = function()
      {

        if(httpRequest.readyState == 4)
        if(httpRequest.status == 200)
        alert(httpRequest.responseText);

        else
        alert('Request Error: '+httpRequest.status);

        }
            httpRequest.open('GET',document.location.href,true);
            httpRequest.send(null);




        xmlhttp.open("GET","Default.aspx",true);
        xmlhttp.send();
</code></pre>
