• 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: AjaxFileUpload how to refresh Component Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxFileUpload how to refresh Component Content


  • Subject: Re: AjaxFileUpload how to refresh Component Content
  • From: Miguel Angel Torres Avila <email@hidden>
  • Date: Fri, 15 Apr 2011 16:27:42 -0500

Hi David,

Thanks for the answer, I am new to AJAX so it is no really clear to me how to relate both components

In AjaxUpdateContainer I found this bindings:


onRefreshComplete the script to execute at the end of refreshing the container
action the action to call when this updateContainer refreshes
insertion _javascript_ function to evaluate when the update takes place (or effect shortcuts like "Effect.blind", or "Effect.BlindUp")
insertionDuration the duration of the before and after insertion animation (if using insertion)
beforeInsertionDuration the duration of the before insertion animation (if using insertion)
afterInsertionDuration the duration of the after insertion animation (if using insertion)
asynchronous set to false to force a synchronous refresh of the container. Defaults to true.
optional set to true if you want the container tags to be skipped if this is already in an update container (similar to ERXOptionalForm). If optional is true and there is a container, it's as if this AUC doesn't exist, and only its children will render to the page.
frequency the frequency (in seconds) of a periodic update
decay a multiplier (default is one) applied to the frequency if the response of the update is unchanged
stopped determines whether a periodic update container loads as stopped.
           
But I don't know which one to use.




On Apr 15, 2011, at 2:32 PM, David LeBer wrote:

Wrap the AjaxFileUpload in an AjaxUpdateContainerr and refresh it with the finishedFunction?

On 2011-04-15, at 3:21 PM, Miguel Angel Torres Avila wrote:

Hi List,

I am testing AjaxfileUpload and I think is great,

I am working in a component that allows the user to upload a XML file and tries to read some info and stores it in the database.

I have an AjaxfileUpload component and in the binding  succeededAction I have set the function that try to read the info from the file, if there is an error it should display a message, if the process is completed it should show some info to the user.

I have done some tests and the AjaxfileUpload  component works perfect but obviously my main component is not reloaded after the file upload, how can I set some area in my main component to be refreshed after the file upload, I mean, during the file reading process I set some objects and vars that are connected to components like  WOConditional, WOString, etc. that should show the info but the area where those components are is not refreshed after the File Upload process.

I hope I had been clear.

Any help?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org






_______________________________
Ing. Miguel Angel Torres Avila
Director General
Tel: +52 (33) 3367 1892
Cel: +52 (33) 3106 8758
E-mail: email@hidden
www.toracom.net

Antes de imprimir, piense en el Medio Ambiente. Before printing think about the Environment. Avant d'imprimer, pensez à l'Environnement 


 

 _______________________________________________
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: AjaxFileUpload how to refresh Component Content
      • From: David LeBer <email@hidden>
References: 
 >AjaxFileUpload how to refresh Component Content (From: Miguel Angel Torres Avila <email@hidden>)
 >Re: AjaxFileUpload how to refresh Component Content (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Sessions and resources
  • Next by Date: Re: AjaxFileUpload how to refresh Component Content
  • Previous by thread: Re: AjaxFileUpload how to refresh Component Content
  • Next by thread: Re: AjaxFileUpload how to refresh Component Content
  • Index(es):
    • Date
    • Thread