EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Dokumentacja Strona 188

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 304
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 187
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 188
onResult
Function A callback function that the target application invokes to return a response
to the sender. This can be an intermediate response or the final result of
processing the message.
To handle the response, set this to a function definition in the following
form:
bridgeTalkObj.onResult = function( responseMsgObject ) {
// handler defined here
};
The target passes a new message object, with the body property set to the
result string. This is the result of the target application’s static
BridgeTalk
onReceive
method, packaged as a UTF-8-encoded string. See Passing
values between applications” on page 176.
onTimeout
Function A callback function that the target application invokes with a time-out
message if time-out occurred before the target finished processing another
message previously sent by this application. To enable this callback, the
message must specify a value for the timeout
property.
To define a response to the timeout event, set this to a function definition in
the following form:
bridgeTalkObj.onTimeout = function( timeoutMsgObject ) {
// handler defined here
};
Przeglądanie stron 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 303 304

Komentarze do niniejszej Instrukcji

Brak uwag