JavaScript Reference/Event Handlers Reference/onBeforeUpdate

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"onBeforeUpdate" Example

   <source lang="javascript">
   

<html> <head> <title>Recordset Events</title> <script for="firstname" event="onbeforeupdate">

   alert("Data is about to change");

</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>

First Name <input id=firstname type=text datasrc=#myData datafld=firstname>
Last Name <input id=lastname type=text datasrc=#myData datafld=lastname>
<thead> </thead> <tbody> </tbody>
First Last

</body> </html>



     </source>
   
  


"onBeforeUpdate" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <applet> | | | <button> | | | <custom> |

| |
<frame> |

| |<frameset> <iframe> | | |<img> <input type="checkbox"> | | |<input type="hidden"> <inputtype="password"> | | |<input type="radio"> <input type="text"> | | |<label> <legend> | | |<map> <marquee> | | |<object> | | | <select> |

| | | | | | +----------------+--------------------------------------------------------------+ </source>

"onBeforeUpdate" Properties

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |cancelBubble clientX | | |clientY ctrlLeft | | |offsetX offsetY | | |returnValue screenX | | |screenY shiftLeft | | |srcElement type | | |x y | +----------------+--------------------------------------------------------------+

     </source>
   
  


"onBeforeUpdate" Syntax and Note

   <source lang="javascript">

Note:

This event fires before a databound object is updated.

The datasrc and datafld attributes must be set to the onBeforeUpdate event handler elements. The value of the datasrc attribute must reference an object in the page.

</source>
<textarea> | | |