executed when:
during a page load operation, when all the direct childs of a container (a page object or panel object) has been created on the page. This event is useful for initialize some properties of the created components.
parameters passed to the event:
page: reference to the page object.
me: reference to the object created.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the component.
codPag: is a string corresponding to the name of the page just loaded.
Applies to
Page, panel.
onClick
executed when:
when the user click on the component.
parameters passed to the event:
page: reference to the page object.
me: reference to the object clicked.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the component clicked.
Applies to:
Text, image, video, remarks panel, panel.
onDoubleClick
executed when:
when the user double click on the component.
parameters passed to the event:
page: reference to the page object.
me: reference to the object double clicked.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the component double clicked.
Applies to:
Text, image, video, remarks panel, panel.
onRollOver
executed when:
when the user roll over the mouse pointer on the component.
parameters passed to the event:
page: reference to the page object.
me: reference to the object which the mouse is roll over.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the component which the mouse is roll over.
Applies to:
Text, image, video, remarks panel, panel.
onRollOut
executed when:
when the user roll out the mouse pointer out the component.
parameters passed to the event:
page: reference to the page object.
me: reference to the object which the mouse is roll out.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the component which the mouse is roll out.
Applies to:
Text, image, video, remarks panel, panel.
onPlay
executed when:
when a video begins to play because a user click the play video component button.
parameters passed to the event:
page: reference to the page object.
me: reference to the video object which is begin to play.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the video component which is begin to play.
Applies to:
Video.
onStop
executed when:
when a video stop to play because a user click the stop video component button.
parameters passed to the event:
page: reference to the page object.
me: reference to the video object which is stop to play.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the video component which is stop to play.
Applies to:
Video.
onRewind
executed when:
when a video rewind because a user click the rewind video component button.
parameters passed to the event:
page: reference to the page object.
me: reference to the video object which is rewind.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the video component which is rewind.
Applies to:
Video.
onPlayEnd
executed when:
when a video reaches the end during playback.
parameters passed to the event:
page: reference to the page object.
me: reference to the video object which is ending to play.
global: reference the global object (explained after)
id: this is a string corresponding to the id of the video component.
Applies to:
Video.
onScroll
executed when:
when the user scrolls the page using either the horizontal or vertical scroll bar.
parameters passed to the event:
page: reference to the page object.
me: reference to object scrolled (in this case the page).
global: reference the global object (explained after)
id: this is a string corresponding to the id of the scrolled component.
Applies to:
Page.
onResize
executed when:
when the browser’s window is resized.
parameters passed to the event:
page: reference to the page object.
me: reference to the object resized (in this case the page).
global: reference the global object (explained after)
id: this is a string corresponding to the id of the resized component.
Applies to:
Page.
Special Events
There are some special events whose syntax is only the event name. These are:
imports
executed when:
only once when page load start.
parameters passed to the event:
page: reference to page object
global: reference to global object.
applies to:
none object
comments:
this event is intended to be used to indicate the libraries needed to use some classes.
functions
executed when:
only once when page load start.
parameters passed to the event:
page: reference to page object
global: reference to global object.
comments:
this event is intended to declare global user functions.
proxy
executed when:
depends the use you give to it.
parameters passed to the event:
page: reference the page.
global: reference the global object.
object: this is an custom object that you can pass to the event.
Example
Now we will make our first web page that includes scripting.We will suppose you have an account with username alex, you have created your first page with this account, so this page will have the name alex1. you must give the user ‘anonimo’ permissions to visit it. Now you must get into the designer for the page alex1, put a text component with the text ‘push me’. So you page will see like this: