JavaScript Reference/Event Handlers Reference/onAfterUpdate

Материал из Web эксперт
Перейти к: навигация, поиск

"onAfterUpdate" Example

<title>Recordset Events</title>
<script for="firstname" event="onafterupdate">
    alert("Data has changed");
<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=""">
       <td>First Name</td>
       <td><input id=firstname type=text datasrc=#myData datafld=firstname></td>
       <td>Last Name</td>
       <td><input id=lastname type=text datasrc=#myData datafld=lastname></td>
<table id=myTable datasrc=#myData>
      <tr style="font-weight:bold">
      <tr id="tableList">
         <td><span datafld="firstname"></span></td>
         <td><span datafld="lastname"></span></td>

<!-- myfile.csv  -->

"onAfterUpdate" is applied to

| Applied_To     |<a>                             <applet>                      |
|                |<bdo>                           <button>                      |
|                |<caption>                       <custom>                      |
|                |<div>                           <frame>                       |
|                |<frameset>                      <iframe>                      |
|                |<img>                           <input type="checkbox">       |
|                |<input type="hidden">           <inputtype="password">        |
|                |<input type="radio">            <input type="text">           |
|                |<label>                         <legend>                      |
|                |<map>                           <marquee>                     |
|                |<object>                        <rt>                          |
|                |<ruby>                          <select>                      |
|                |<span>                          <table>                       |
|                |<td>                            <textarea>                    |
|                |<tr>                                                          |

"onAfterUpdate" Properties

| Properties     |altKey                          altLeft                       |
|                |cancelBubble                    ctrlLeft                      |
|                |shiftLeft                       srcElement                    |
|                |type                                                          |

"onAfterUpdate" Syntax and Note

This event fires when a databound object"s data has been successfully updated. 
This event fires only if the onbeforeupdate event has already fired.
The datasrc and datafld attributes must be set, 
and the value of the datasrc attribute must reference an object in the page.