But what would be the point of it?

----- Original Message ----- 
From: "swidnikk" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, June 29, 2008 2:36 PM
Subject: [flexcoders] Re: synchronous events in flex


>A sneaky way to accomplish synchronous http request in Flash is via
> javascript bridge where it is possible to can make a synchronous
> xmlhttprequest. Check out the page below which contrasts asynchronous
> / synchronous javascript.
>
> http://ajaxpatterns.org/XMLHttpRequest_Call#Asynchronous_Calls
>
>
>
>
> --- In [email protected], "JWOpitz" <[EMAIL PROTECTED]> wrote:
>>
>> There are many ways to do what you are looking for, though in a
>> asyncronous manner.  Ralf suggested binding a view to a prop on the
>> model, upon updating will update the view.  That is probably the most
>> OO way of doing it within the MVC framework.  But it also is harder to
>> do more view-specific validation.  As for disallowing the user to
>> interact with the app until a response is received, you could
>> basically have your app in a disabled mode until your IResponder
>> triggers on the response.  Upon result or fault tell the model to
>> allow further interaction and subsequent validation if applicable.
>>
>> Awhile back I wrote some articles on doing just this when your design
>> requires a bit more in terms of validation and error handling.  You
>> can read up on it here.  Would be interested in your thoughts as well.
>>
>>
> http://jwopitz.wordpress.com/2008/04/24/tutorial-handling-service-validation-errors-cairngorm/
>>
>>
> http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-2/
>>
>>
> http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-3/
>>
>> --- In [email protected], "Ralf Bokelberg"
>> <ralf.bokelberg@> wrote:
>> >
>> > You could either set a bindable property on your model,
>> > or pass in a object, which does the result handling.
>> >
>> > Cheers
>> > Ralf.
>> >
>> > On Sat, Jun 28, 2008 at 8:09 PM,  <parjan@> wrote:
>> > > You mean if i have to display an alert message 'Customer name
> already
>> > > exists' them i have to put this code in result method as follows,
>> Basically
>> > > this is Command class which implements IResponder .
>> > >
>> > > public function result( event : Object ) : void
>> > > {
>> > > // Some processing
>> > > Alert.show( 'Name XYZ Already Exists' ) ;
>> > > CursorManager.removeBusyCursor();
>> > > Application.application.enabled =true ;
>> > > }
>> > > If you meant this then don't you think it is not good design , now
>> suppose
>> > > if instead of Alert message i am going to display inline error
>> message on
>> > > the view then i have to access view in my command class to display
>> error
>> > > message.
>> > > ,
>> > >
>> > > ----- Original Message -----
>> > > From: "Paul Andrews" <paul@>
>> > > To: <[email protected]>
>> > > Sent: Sat, 28 Jun 2008 19:00:07 +0100
>> > > Subject: Re: [flexcoders] synchronous events in flex
>> > >
>> > >> ----- Original Message -----
>> > >> From: <parjan@>
>> > >> To: <[email protected]>
>> > >> Sent: Saturday, June 28, 2008 2:54 PM
>> > >> Subject: [flexcoders] synchronous events in flex
>> > >>
>> > >>
>> > >> > Hi
>> > >> > Can anyone tell me how to write synchronous events in flex
>> application?
>> > >>
>> > >> There are no synchronous events.
>> > >>
>> > >> > I am calling an Httpservice on focus out event of text field this
>> > >> > service
>> > >> > checks name duplication. I want my application to wait for
>> service to
>> > >> > finish and then do some processing
>> > >>
>> > >> Supply a result handler for the httpservice and put your code in
>> that. It
>> > >> will be called asynchronously when the result is ready.
>> > >>
>> > >> Flex doesn't do waiting, except through event handlers.
>> > >>
>> > >> > Thanks in advance
>> > >>
>> > >> Paul
>> > >
>> >
>>
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 

Reply via email to