Loading ...
Sorry, an error occurred while loading the content.

Re: YAHOO.util.Connect.asyncRequest + POST + Callback problem

Expand Messages
  • ses030566
    Hi ! Thanks for the suggestion. I miss out the success and failure properties. ... callback.
    Message 1 of 5 , Jan 29, 2008
    • 0 Attachment
      Hi !

      Thanks for the suggestion. I miss out the success and failure properties.

      --- In ydn-javascript@yahoogroups.com, "Jing Ceawlin" <zjply4000@...>
      wrote:
      >
      > I'm not sure, but you can try
      > function CallbackRD ()
      > {
      > setTimeout(function(){
      > window.location="http://www.google.com";
      > }, 0);
      > }
      >
      > If this works, it means you can't redirect the page in the ajax
      callback.
      > Otherwise, please check if your ajax request failed.
      >
      > On Jan 27, 2008 6:25 PM, ses030566 <ses030566@...> wrote:
      >
      > > Hi all,
      > >
      > > Just wanted to ask, is it possible to do something like this?
      > >
      > > var transaction =
      > > YAHOO.util.Connect.asyncRequest('POST','/json/something',CallbackRD,
      > > postdata);
      > >
      > > function CallbackRD ()
      > > {
      > > window.location="http://www.google.com";
      > > }
      > >
      > > When i submit my form the data does go into the database but the page
      > > did not change after the submission. Can anyone show me what i did
      > > wrong?Can we use callback function for redirect? any alternatives?
      > >
      > > Thanks.
      > >
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.