Javascript Reference
Categories: event

javascript event reason

@March 15, 2008, 1:22 a.m.
reasonFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a

Read/Write

Returns a code associated with an ondatasetcomplete event signifying whether the IE data binding data transfer was successful or, if incomplete, whether the transfer stopped due to an error or a stoppage by the client or user. This property must be examined in an event handler for the ondatasetcomplete event. In IE 4, the property is read-only. Although IE 5/Mac includes this property of the event object, it does not implement the associated event.

 
Example
 
if (evt.reason == 2) {
    alert("An error occurred during the most recent update.");
}
 
Value

One of three possible integer values:

 
0

Transfer was successful

1

Transfer aborted

2

An error halted the transfer

 
Default

None.


Powered by Linode.