$.ajax
$.ajax
my $.ajax request retriving earlier data.
I am retriving data from aspx page passing sql query but it is not
retriving latest data. but if I close the brouser and re-open the url
it is showing latest data.
function saveData(qry)
{
var dbcommand = "<data><dbname>"+dbname+"</dbname><dbquery>"+qry +"</
dbquery><maxrecs>"+n+"</maxrecs></data>";
if(verbose) alert(dbcommand);
var o = $.ajax({
type: "GET",
url: "http://localhost:1234/dbqex.aspx",
data: "dbcmd="+dbcommand,
success: showMessage,
error:function(req,textStatus,errorThrown){
// if url failes you will get textStatus = 'error'
// req and errorThrown do not contain info
alert(textStatus);}
});
}
please help
thanks in adv.
Suhas