'onAfterUpdate' Example : onAfterUpdate « Event Handlers Reference « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Event Handlers Reference » onAfterUpdate 
'onAfterUpdate' Example

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


<!-- myfile.csv  -->
<!--
firstname:string,lastname:string
Joe,Yin
Jason,Lee
Tony,Zhang
-->

    
      
      
Related examples in the same category
1.'onAfterUpdate' Syntax and Note
2.'onAfterUpdate' Properties
3.'onAfterUpdate' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.