$.ajax({
    *cache:false*,
    ...
});

On Thu, Feb 12, 2009 at 9:43 AM, squiddy <[email protected]> wrote:

>
> Hello,
>
> as far as I know, GET requests are far more often cached by the
> browser than POST requests. So maybe this could be a problem here? You
> could try to use POST instead, or add a random value as parameter to
> the request, a timestamp for example.
>
> Otherwise, can you try to be more specific about "it is not retrieving
> latest data"? What does the ajax call return? What's your asp script
> doing?
>
> Besides, I'm just curious, are you passing raw sql commands to your
> server from the outside? Seems like a huge security problem.
>
> Greets
>
> On Feb 11, 11:06 am, SUHAS <[email protected]> wrote:
> > 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
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to