On 2011-04-15, at 5:27 PM, Miguel Angel Torres Avila wrote:

> 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.

When you add an AjaxUpdateContainer to your page, you automagically get an 
update function for it. So if the id of the AjaxUpdateContainer is 
'MyUpdateContainer' the function is: MyUpdateContainerUpdate(); and you would 
bind the finishedBinding of the AjaxFileUpload component to function() { 
MyUpdateContainerUpdate(); }

Note: Typed directly into email, ymmv, illegal where prohibited by law, etc.

> 
> 
> 
> 
> 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 protected]
> 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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to [email protected]

;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




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to