[jQuery] $.ajax

[jQuery] $.ajax


$.ajax retriving data from old request.
if I re-open the link then latest data is shown
why it is happening
function getTask(qry)
{
tline = qry;
document.getElementById("tline").innerHTML = "Fetching recs
"+tline;
var dbcommand = "<data><dbname>"+dbname+"</dbname><dbquery><![CDATA
["+qry+"]]></dbquery><maxrecs>"+n+"</maxrecs></data>";
// alert(dbcommand);
//var o = $.get("http://localhost:1234/dbqex.aspx",{dbcmd:dbcommand},
function(data){ alert("Data Loaded: " + data); });
var o = $.ajax({
        type: "GET",
        url: "http://localhost:1234/dbqex.aspx",
        data:"dbcmd="+dbcommand,
        success: insertTaskDataToForm,
        error:function(req,textStatus,errorThrown){
            // if url failes you will get textStatus = 'error'
            // req and errorThrown do not contain info
                alert(textStatus);
            }
        });
}
regards,
Suhas