Rob can answer this much better than I, but he is N/A.

So here goes

Keep in mind the chat is multi-threaded: where the messages are
retrieved and refreshed in a background thread;  while the user may be
typing in a foreground thread.

     // sets up a thin array  object named message
     var messages = new ThinArray();

    // creates a DefaultHandler that specifies the messages object as
the target of the (to be issued) ws request
    dh = new DefaultHandler("messages");

    // invokes the ws passing lastid and chatroom, naming the dh handler
as the recipient
    robject.getMessages(
        lastid,
        xmlformat(document.chatform.room.value),
       dh.handle
       );

It is more straight forward  with single-thread synchronous processing

the DefaultHandler function is defined in gateway.js

the ThinArray is defined in collections.js

HTH

Dick

On Apr 6, 2004, at 10:09 AM, Thomas Chiverton wrote:

> On Tuesday 06 Apr 2004 16:10 pm, Dick Applebaum wrote:
>  > It is very much quicker!
>
>  :experiments
>
>  In the chatdemo, what tells it to link the messages ThinArray
> _javascript_
>  object, to the query returned byrobject.getMessages (that I can see
> calls a
>  web service) ?
>
>  --
>  Tom Chiverton
>  Advanced ColdFusion Programmer
>
>  Tel: +44(0)1749 834997
>  email: [EMAIL PROTECTED]
>  BlueFinger Limited
>  Underwood Business Park
>  Wookey Hole Road, WELLS. BA5 1AF
>  Tel: +44 (0)1749 834900
>  Fax: +44 (0)1749 834901
>  web: www.bluefinger.com
>  Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
>  Quay, BRISTOL. BS1 6EG.
>  *** This E-mail contains confidential information for the addressee
>  only. If you are not the intended recipient, please notify us
>  immediately. You should not use, disclose, distribute or copy this
>  communication if received in error. No binding contract will result
> from
>  this e-mail until such time as a written document is signed on behalf
> of
>  the company. BlueFinger Limited cannot accept responsibility for the
>  completeness or accuracy of this message as it has been transmitted
> over
>  public networks.***
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to