hehe....thanks again Stefan.....the explanation helps!!
-
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [email protected]
web: www.electricedgesystems.com
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
On Mon, 2009-08-17 at 11:14 -0700, Stefan wrote:
> Just to be clear:
>
> async:
> jsProxy.getValue();
> function myCallBack(r){
> returnedValue = r;
> }
> -request is sent to server and a event handler is set
> -js code continues to execute without waiting for the response
> -when request is returned, event triggers and send the result to the
> callback function
>
> sync
> returnedValue = jsProxy.getValue();
> -request is sent to server
> -js is held in a loop until it get response from server
>
> Or sometyhing :)
>
> So the difference is that in sync mode, the call returns a value
> directly and in async the js code continues to execute and the result
> is event triggered.
>
> Not that I could find any traces of events in the cfajaxproxy code, so
> I might very well be mistaken :)
>
>
>
> On Aug 17, 6:18 pm, Bryan Stevenson <[email protected]>
> wrote:
> > Thanks Stefan....as I did think I'd only get the response in sync
> > mode ;-)
> > -
> >
> > Bryan Stevenson B.Comm.
> > VP & Director of E-Commerce Development
> > Electric Edge Systems Group Inc.
> > phone: 250.480.0642
> > fax: 250.480.1264
> > cell: 250.920.8830
> > e-mail: [email protected]
> > web:www.electricedgesystems.com
> >
> > Notice:
> > This message, including any attachments, is confidential and may contain
> > information that is privileged or exempt from disclosure. It is intended
> > only for the person to whom it is addressed unless expressly authorized
> > otherwise by the sender. If you are not an authorized recipient, please
> > notify the sender immediately and permanently destroy all copies of this
> > message and attachments.
> >
> > On Sat, 2009-08-15 at 03:58 -0700, Stefan wrote:
> >
> > > On Aug 14, 9:06 pm, Bryan Stevenson <[email protected]>
> > > wrote:
> > > > In reality I need to get the records and handle the case (in a callback
> > > > handler) of displaying an error message in the event of an error OR
> > > > changing the innerHTML of a DIV if there was no error.
> >
> > > > Of course perhaps you were trying to demonstrate something other than
> > > > some shorter JS code than what I plucked off some example page?? ;-)
> >
> > > > Cheers
> >
> > > No I did not want to demonstrate shorter code (altough sync mode often
> > > makes the code shorter), but you wrote "rarely do I ever just fire off
> > > a call and expect nothing back. ", so I just wanted to make sure you
> > > knew that you also get a return value in sync mode.
> >
> >
> >
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---