Event "OnCreate" <oncreate>

Top  Previous  Next

This in not a real HTML event. When a value is assigned to this event, the Application Studio creates and embedded java script right after the HTML code of the element.

The "this" keyword, which can be used in the other events and stands for the object handle for the element is not valid for this event. For example the following Javascript code will not work:

this.value = 'x';

 

In order to get the object handle of the element, the HTML Id property of the element should be defined and the technique below should be used.

document.getElementById('%vof(htmlid)').value = 'x';

 

%vof(htmlid) will be replaced by the Application Studio with the id of the element.

See %vof() function.

After compile the generated code will look like as follows:

<td><input name="editbox11" id="123" type="text"></td>

<script language="javascript"><!--

      document.getElementById('123').value = 'ABC';

    //--></script>

 

Used in Elements

Panel

Graphic Text

Image

Action

Form

Edit Box

Edit Area

Radio Button

Combo Box

List Box

Button

File Box

 

See Events.