JavaScript Reference/Event Handlers Reference/onRowsInserted
Содержание
"onRowsInserted" Example
<source lang="javascript">
<html> <head> <title>Recordset Events</title> <script for="myData" event="onrowsinserted">
alert("Inserted");
</script> <script language="javascript">
function add(){ myData.recordset.AddNew(); }
</script> </head> <body> <input id=cmdAdd type="button" value="add record" onclick="add();"> <object classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83" id="myData">
<param name="DataURL" value="myfile.csv"> <param name="UseHeader" value="True"> <param name="TextQualifier" value=""">
</object>
First Name | <input id=firstname type=text datasrc=#myData datafld=firstname> |
Last Name | <input id=lastname type=text datasrc=#myData datafld=lastname> |
First | Last |
</body> </html>
</source>
"onRowsInserted" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<applet> <object> | | |<xml> | +----------------+--------------------------------------------------------------+
</source>
"onRowsInserted" Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |cancelBubble ctrlLeft | | |qualifier reason | | |recordset shiftLeft | | |srcElement type | +----------------+--------------------------------------------------------------+
</source>
"onRowsInserted" Syntax and Note
<source lang="javascript">
Note:
This event fires when inserting a row into the recordset of a databound object. The datasrc and datafld attributes must be set. The value of the datasrc attribute must reference an object in the page.
</source>