Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The onTransferProgress event indicates the progress of a resource-transfer operation.
Syntax
Resource.onTransferProgress(
numBytesTransferred,
numTotalBytes
)
Parameters
-
numBytesTransferred
-
The number of bytes that have been transferred so far.
-
numTotalBytes
-
The total number of bytes that will be transferred.
Return value
This event does not return a value.
Remarks
For an example of how to use the onTransferProgress event, see the examples in the topic Asynchronous Functions.
Examples
The following code shows the handler-function syntax for the onTransferProgress event.
function HandlerFunction(numBytesTransferred, numTotalBytes)
{
// Code to handle an asynchronous transfer operation.
}
// Set the event handler.
resource.onTransferProgress = HandlerFunction;
Requirements
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |