18.02.2015 Views

5ml User's Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>5ml</strong> <strong>User's</strong> <strong>Guide</strong><br />

Event<br />

Description<br />

Use with this<br />

element<br />

Use with<br />

this action<br />

SDK<br />

required<br />

ondocumentload Occurs when the external page loads. Facebook Like Button,<br />

Tweet Button,<br />

YouTube, IFrame<br />

Mostly Custom<br />

Function<br />

No<br />

ondrop<br />

Fires on a target element when the user releases the<br />

mouse button during a drag-and-drop operation.<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onenter Occurs before a view becomes the current view. Page, View , Tab Mostly Custom<br />

Function<br />

No<br />

onheadingchange<br />

Occurs when the device’s heading is changed. (Applicable<br />

only for devices equipped with magnetometer.)<br />

All<br />

Mostly Custom<br />

Function<br />

Yes<br />

onkeydown<br />

Occurs on the focused element when the user presses a<br />

key down, and occurs periodically until the user releases<br />

the key.<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onkeypress<br />

Occurs on the focused element when the user presses a<br />

key down, and occurs periodically until the user releases<br />

the key.<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onkeyup<br />

Occurs on the focused element when the user releases a<br />

key.<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onleave<br />

Occurs on the current view before it is replaced by<br />

another view and becomes hidden.<br />

Page, View, Tab<br />

Mostly Custom<br />

Function<br />

No<br />

onload Occurs immediately after an element loads and is parsed. All Mostly Custom<br />

Function<br />

No<br />

onlocationchange<br />

Occurs when the device’s location (latitude, longitude)<br />

changes. (Provides higher accuracy if the device is<br />

equipped with GPS.)<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onmousedown<br />

Occurs when the user presses a mouse button over an<br />

element.<br />

All All No<br />

onmousemove<br />

Occurs when the user moves the mouse over an element.<br />

(Supported by devices with a touch screen display.)<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onmouseout<br />

Occurs when the user moves the mouse pointer out of an<br />

element.<br />

All All No<br />

onmouseover<br />

Occurs when the user moves the mouse pointer into an<br />

element.<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

onmouseup<br />

Occurs when the user releases the mouse button on an<br />

element. (Supported by devices with a touch screen display.)<br />

All All No<br />

onresize Occurs when the size of an element changes. All Mostly Custom<br />

Function<br />

No<br />

onswipe<br />

Occurs after the user swipes an element using the mouse.<br />

(Supported by devices with a touch screen display.)<br />

All<br />

Mostly Custom<br />

Function<br />

No<br />

- 225 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!