User Guide
410 Chapter 12: Methods
netAbort
Usage
netAbort(URL)
netAbort(netID)
Description
Command; cancels a network operation without waiting for a result.
Using a network ID is the most efficient way to stop a network operation. The ID is returned
when you use a network function such as
getNetText() or postNetText().
In some cases, when a network ID is not available, you can use a URL to stop the transmission of
data for that URL. The URL must be identical to that used to begin the network operation. If the
data transmission is complete, this command has no effect.
Parameters
URL
Required. Specifies the URL to cancel.
netID Optional. Specifies the ID of the network operation to cancel.
Example
This statement passes a network ID to netAbort to cancel a particular network operation:
-- Lingo syntax
on mouseUp
netAbort(myNetID)
end
// JavaScript syntax
function mouseUp() {
netAbort(myNetID);
}
See also
getNetText(), postNetText
netDone()
Usage
netDone()
netDone(netID)
Description
Function; indicates whether a background loading operation (such as getNetText,
preloadNetThing, gotoNetMovie
, gotoNetPage, or netTextResult) is finished or was
terminated by a browser error (TRUE, default) or is still in progress (FALSE).
• Use netDone() to test the last network operation.
• Use netDone(netID) to test the network operation identified by netID.
The
netDone function returns 0 when a background loading operation is in progress.