• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AJAX and You backtracked too far error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AJAX and You backtracked too far error


  • Subject: Re: AJAX and You backtracked too far error
  • From: Peter Vandoros <email@hidden>
  • Date: Wed, 16 Nov 2005 10:38:06 +1100

You can overide savePage() in Session and don't call super.savePage() for your "TaskStatus" page. This won't add the page into the session cache.

Thanks

Peter

Ricardo Parada wrote:

I have a little app that displays a page where the user clicks a hyperlink that invokes a component action that starts a thread of a long running process.  

The page then displays again showing that the task in in-progress.  I then use _javascript_'s XMLHttpRequest to get status information periodically and update a section of the HTML on the page to show the user the elapsed time, what it's doing, status and stuff like that.

The _javascript_ code checks the status of the task until it completes.  When the status is complete I submit the form on the page to cause it to redisplay.  However, when I do that I get this error:


You backtracked too far.
The application backtracking limit of 30 has been exceeded.


Any ideas how to avoid this error?

The direct action that generates the page with the status information that is sent to the browser is as follows:

    public WOActionResults checkStatusAction() {
        return pageWithName("TaskStatus");
    }

TaskStatus component simply returns the XML containing the status information for the running task. 

The checkStatusAction is called by the _javascript_ on the browser using XMLHttpRequest.

I read the WebObjects documentation on page caching but I still can't figure out how to avoid this error.

If anyone has any ideas please shoot me an email.

Thanks,
Ricardo Parada


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AJAX and You backtracked too far error
      • From: Ricardo Parada <email@hidden>
References: 
 >AJAX and You backtracked too far error (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: smarter fetch limits
  • Next by Date: Re: AJAX and You backtracked too far error
  • Previous by thread: AJAX and You backtracked too far error
  • Next by thread: Re: AJAX and You backtracked too far error
  • Index(es):
    • Date
    • Thread