• 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: JS libraries used with WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JS libraries used with WO


  • Subject: Re: JS libraries used with WO
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 21 Jun 2007 07:38:42 -0400

As long as you are not returning HTML that contains component actions, I think this will be enough (meaning if you're just fire-and- forget to an action in the background). If you are returning HTML results with component actions in them and replacing page contents with it, you will need to behave like an AjaxUpdateContainer and also add AjaxUtils.setPageReplacementCacheKey(context, id); where "id" is a unique identifier for the updating area on the page. This causes the ajax-specific cache to turn on which will allow component actions to function. But really, you're making your life hard ... Just use AjaxUpdateContainer and AjaxSubmitButton if you get to that point. They do the work so you don't have to.

ms

On Jun 21, 2007, at 5:28 AM, Paul Stringer wrote:

Got it, I was already using ERXSession but I looked again at what I was doing and discovered I was indeed being naive and care free with use of a plain old new WOResponse() with my HTML in. I modified this to an AjaxUtils.createResponse() hopefully I think means people could submit the form to their hearts content without ever seeing the backtrack page.

Paul S

On Jun 20, 2007, at 9:10 PM, email@hidden wrote:

Keep in mind that your backtrack cache WILL get blown out if you're
not using something like the code in ERXAjaxSession from Ajax
framework.  It will tease you by appearing to work fine, but it's
only a tease.

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


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: JS libraries used with WO
      • From: Mike Schrag <email@hidden>
References: 
 >Re: JS libraries used with WO (From: Paul Stringer <email@hidden>)

  • Prev by Date: Re: JS libraries used with WO
  • Next by Date: Re: JS libraries used with WO
  • Previous by thread: Re: JS libraries used with WO
  • Next by thread: Re: JS libraries used with WO
  • Index(es):
    • Date
    • Thread