Libraries.Web.Page.EventAttributeAccepter Documentation

The EventAttributeAccepter is a helper class which is a subclass of all accepters classes. This includesAttributeAccepter, MouseAttributeAccepter, WindowAttributeAccepter, FormAttributeAccepter,MediaAttributeAccepter, and KeyboardAttributeAccepter.

Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Web.Page.KeyboardAttributeAccepter, Libraries.Web.Page.FormAttributeAccepter, Libraries.Web.Page.WindowAttributeAccepter, Libraries.Web.Page.MediaAttributeAccepter, Libraries.Language.Object, Libraries.Web.Page.MouseAttributeAccepter

Actions Documentation

Add(Libraries.Web.Page.Attribute attribute)

This action adds an attribute to this object. If an attribute with the same name as

Parameters

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

Attribute attribute
attribute:SetName("src")
attribute:SetValue("http://www.google.com")

AttributeAccepter accept
accept:Add(attribute)

AddAttribute(text name, text value)

This action adds an attribute to this object. This action is a helper action, which essentially does the same thing as the Add(Attribute) action. If an attribute with the same name as

Parameters

  • text name: The name of the attribute functions as a key. For example, in a link, we might have a "src" and an actual address, like google.com. In this case, the name would be equivalent to the src.
  • text value: As an example of link, imagine we have a value of "src" and an actual address, like google.com. In this case, the value would be equivalent to google.com.

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Example

Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Example

use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)

GenerateAttributes()

This action returns a text description of all attributes stored.

Return

text:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
text result = accept:GenerateAttributes()

GetAttribute(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Parameters

  • text name

Return

Libraries.Web.Page.Attribute:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
//as we have not set any attribute, this would
//return undefined
Attribute attribute = accept:GetAttribute("src")

GetAttributeValue(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Parameters

  • text name: The key value in this case is described in more detail in the documentation for this class's Add actions.

Return

text:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
text value = accept:GetAttributeValue("src")

GetAttributes()

Returns a list of all attributes on the system.

Return

Libraries.Web.Page.Attributes: The attributes class contains all of the attributes that have been set for this object.

Example



use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attributes

AttributeAccepter accept
Attributes attributes = accept:GetAttributes()

GetHashCode()

This action gets the hash code for an object.

Return

integer: The integer hash code of the object.

Example

Object o
integer hash = o:GetHashCode()

GetIterator()

This action returns an iterator of all attributes stored in this object.

Return

Libraries.Containers.Iterator:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
use Libraries.Containers.Iterator

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")

//output out all of the attributes
Iterator<Attribute> it =  accept:GetIterator()
repeat while it:HasNext()
    Attribute at = it:Next()
    output at:Generate()
end

GetNumberOfAttributes()

This action returns the number of attributes that are currently stored in this object.

Return

integer:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
integer num = accept:GetNumberOfAttributes()

GetOnAHasChange()

Returns the OnAHasChange attribute. If a window change event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnAHasChange attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnAHasChange()

GetOnAbort()

Returns the OnAbort attribute. If a on abort event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnAbort attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnAbort()

GetOnAfterPrint()

Returns the OnAfterPrint attribute. After a output event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnAfterPrint attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnAfterPrint()

GetOnBeforePrint()

Returns the OnBeforePrint attribute. Before a output event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnBeforePrint attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnBeforePrint()

GetOnBlur()

Returns the onblur attribute. If the onblur attribute is enabled the form element has lost focus.

Return

Libraries.Web.Page.Attribute: The current onblur attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnBlur()

GetOnCanPlay()

Returns the OnCanPlay attribute. If a can play event (a file has buffered enough to play) occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnCanPlay attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnCanPlay()

GetOnCanPlayThrough()

Returns the OnCanPlayThrough attribute. If a play all the way through (the file can play without pausing for buffering) event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnCanPlayThrough attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnCanPlayThrough()

GetOnChange()

Returns the OnChange attribute. If the OnChange event occurs when a form elements state, text, or selection is changed.

Return

Libraries.Web.Page.Attribute: The current OnChange event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnChange()

GetOnClick()

Returns the OnClick attribute. If a on click event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnClick attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnClick()

GetOnContextMenu()

Returns the OnContextMenu attribute. If the OnContextMenu specifies the script to run when a context menu is triggered.

Return

Libraries.Web.Page.Attribute: The current OnContextMenu attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnContextMenu()

GetOnDoubleClick()

Returns the OnDoubleClick attribute. If a on double click event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDoubleClick attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDoubleClick()

GetOnDrag()

Returns the OnDrag attribute. If a on drag event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDrag attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDrag()

GetOnDragEnd()

Returns the OnDragEnd attribute. If a on drag end event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDragEnd attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDragEnd()

GetOnDragEnter()

Returns the OnDragEnter attribute. If a on drag into area event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDragEnter attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDragEnter()

GetOnDragLeave()

Returns the OnDragLeave attribute. If a on drag out of area event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDragLeave attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDragLeave()

GetOnDragOver()

Returns the OnDragOver attribute. If a on drag over event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDragOver attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDragOver()

GetOnDragStart()

Returns the OnDragStart attribute. If a on drag start event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDragStart attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDragStart()

GetOnDrop()

Returns the OnDrop attribute. If a on drop item event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDrop attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnDrop()

GetOnDurationChange()

Returns the OnDurationChange attribute. If the durration of a a media file changes, this event will occur on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnDurationChange attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnDurationChange()

GetOnEmptied()

Returns the OnEmptied attribute. If the file becomes unavailable this event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnEmptied attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnEmptied()

GetOnEnded()

Returns the OnEnded attribute. If the media file reaches the end event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnEnded attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnEnded()

GetOnError()

Returns the OnError attribute. When an error event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnError attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnError()

GetOnFocus()

Returns the OnFocus attribute. If the OnFocus event occurs when a form element gains focus.

Return

Libraries.Web.Page.Attribute: The current OnFocus event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnFocus()

GetOnFormChange()

Returns the OnFormChange attribute. If the OnFormChange stores the script to be run when a form change occurs.

Return

Libraries.Web.Page.Attribute: The current OnFormChange script attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnFormChange()

GetOnFormInput()

Returns the OnFormInput attribute. If the OnFormInput is triggered, by a form recieving input, the specified script will be run.

Return

Libraries.Web.Page.Attribute: The current OnFormInput event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnFormInput()

GetOnInput()

Returns the OnInput attribute. If the OnInput is triggered, by a form element recieving input, the specified script will be run.

Return

Libraries.Web.Page.Attribute: The current OnInput event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnInput()

GetOnInvalid()

Returns the OnInvalid attribute. If the OnInvalid is triggered, by a form element recieving invalid input, the specified script will be run.

Return

Libraries.Web.Page.Attribute: The current OnInvalid event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnInvalid()

GetOnKeyDown()

Returns the OnKeyDown attribute. If a key down event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnKeyDown attribute.

Example



use Libraries.Web.Page.KeyboardAttributeAccepter
use Libraries.Web.Page.Attribute

KeyboardAttributeAccepter accept
Attribute attribute = accept:GetOnKeyDown()

GetOnKeyPress()

Returns the OnKeyPress attribute. If a key press event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnKeyPress attribute.

Example



use Libraries.Web.Page.KeyboardAttributeAccepter
use Libraries.Web.Page.Attribute

KeyboardAttributeAccepter accept
Attribute attribute = accept:GetOnKeyPress()

GetOnKeyUp()

Returns the OnKeyUp attribute. If a key up event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnKeyUp attribute.

Example



use Libraries.Web.Page.KeyboardAttributeAccepter
use Libraries.Web.Page.Attribute

KeyboardAttributeAccepter accept
Attribute attribute = accept:GetOnKeyUp()

GetOnLoad()

Returns the OnLoad attribute. If a load event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnLoad attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnLoad()

GetOnLoadStart()

Returns the OnLoadStart attribute. If a load event is about to start on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnLoadStart attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadStart()

GetOnLoadedData()

Returns the OnLoadedData attribute. If a media loaded event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnLoadedData attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadedData()

GetOnLoadedMetaData()

Returns the OnLoadedMetaData attribute. If the meta data is loaded event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnLoadedMetaData attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnLoadedMetaData()

GetOnMediaError()

Returns the OnMediaError attribute. If a load error event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMediaError attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnMediaError()

GetOnMessage()

Returns the OnMessage attribute. If a message event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMessage attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnMessage()

GetOnMouseDown()

Returns the OnMouseDown attribute. If a on mouse button down event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseDown attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseDown()

GetOnMouseMove()

Returns the OnMouseMove attribute. If a on mouse move event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseMove attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseMove()

GetOnMouseOut()

Returns the OnMouseOut attribute. If a on mouse out of area event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseOut attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseOut()

GetOnMouseOver()

Returns the OnMouseOver attribute. If a on mouse over event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseOver attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseOver()

GetOnMouseUp()

Returns the OnMouseUp attribute. If a on mouse button up event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseUp attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseUp()

GetOnMouseWheel()

Returns the OnMouseWheel attribute. If a mouse wheel scroll event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnMouseWheel attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnMouseWheel()

GetOnOffline()

Returns the OnOffline attribute. If a window offline event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnOffline attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnOffline()

GetOnOnline()

Returns the OnOnline attribute. If an online event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnOnline attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnOnline()

GetOnPageHide()

Returns the OnPageHide attribute. When a page is hidden event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPageHide attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnPageHide()

GetOnPageShow()

Returns the OnPageShow attribute. When a page show event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPageShow attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnPageShow()

GetOnPause()

Returns the OnPause attribute. If a pause event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPause attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPause()

GetOnPlay()

Returns the OnPlay attribute. If a play event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPlay attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPlay()

GetOnPlaying()

Returns the OnPlaying attribute. If a play event is currently firing on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPlaying attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnPlaying()

GetOnPopState()

Returns the OnPopState attribute. When a windows history change event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnPopState attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnPopState()

GetOnProgress()

Returns the OnProgress attribute. If a on progress event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnProgress attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnProgress()

GetOnRateChange()

Returns the OnRateChange attribute. If a on play rate change event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnRateChange attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnRateChange()

GetOnReadyStateChange()

Returns the OnReadyStateChange attribute. If the ready state event changes on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnReadyStateChange attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnReadyStateChange()

GetOnRedo()

Returns the OnRedo attribute. When a page redo event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnRedo attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnRedo()

GetOnResize()

Returns the OnResize attribute. After a window resize event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnResize attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnResize()

GetOnScroll()

Returns the OnScroll attribute. If a on scroll event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnScroll attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
Attribute attribute = accept:GetOnScroll()

GetOnSeeked()

Returns the OnSeeked attribute. If a seek event has occured on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnSeeked attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSeeked()

GetOnSeeking()

Returns the OnSeeking attribute. If a seek event is currently occuring on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnSeeking attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSeeking()

GetOnSelect()

Returns the OnSelect attribute. OnSelect is triggered by the selection of an elements text on the form.

Return

Libraries.Web.Page.Attribute: The current OnSelect event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnSelect()

GetOnStalled()

Returns the OnStalled attribute. If a stall event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnAbort OnStalled.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnStalled()

GetOnStorage()

Returns the OnStorage attribute. If a window storage area is updated on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnStorage attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnStorage()

GetOnSubmit()

Returns the OnSubmit attribute. The OnSubmit is triggered by a submit action on the form.

Return

Libraries.Web.Page.Attribute: The current OnSubmit event attribute.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
Attribute attribute = accept:GetOnSubmit()

GetOnSuspend()

Returns the OnSuspend attribute. If a on suspend event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnSuspend attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnSuspend()

GetOnTimeUpdate()

Returns the OnTimeUpdate attribute. If the playing position changes on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnTimeUpdate attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnTimeUpdate()

GetOnUndo()

Returns the OnUndo attribute. If a window undo event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnUndo attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnUndo()

GetOnUnload()

Returns the OnUnload attribute. After a browser window close event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnUnload attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
Attribute attribute = accept:GetOnUnload()

GetOnVolumeChange()

Returns the OnVolumeChange attribute. If a volume change event occurs on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnVolumeChange attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnVolumeChange()

GetOnWaiting()

Returns the OnWaiting attribute. If a pause event occurs and it is expected to continue on a specified element a script is fired based on this attribute.

Return

Libraries.Web.Page.Attribute: The current OnWaiting attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
Attribute attribute = accept:GetOnWaiting()

HasAttribute(text name)

This action returns whether or not an attribute exists for the key passed in as a parameter.

Parameters

  • text name: The key value in this case is described in more detail in the documentation for this class's Add actions.

Return

boolean:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
boolean exists = accept:HasAttribute("src")

RemoveAttribute(text name)

This action removes an attribute with a particular key. If that attribute does not exist, then this action returns undefined.

Parameters

  • text name: The name of the attribute that should be removed.

Return

Libraries.Web.Page.Attribute:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
accept:RemoveAttribute("src")

SetOnAbort(text value)

Sets the OnAbort attribute script when the OnAbort event is triggered.

Parameters

  • text value: The current OnAbort attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnAbort("doSomething()")

SetOnAfterPrint(text value)

Sets the OnAfterPrint attribute script when the OnAfterPrint event is triggered.

Parameters

  • text value: The current OnAfterPrint attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
accept:SetOnAfterPrint("doSomething()")

SetOnBeforePrint(text value)

Sets the OnBeforePrint attribute script when the OnBeforePrint event is triggered.

Parameters

  • text value: The current OnBeforePrint attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
accept:SetOnBeforePrint("doSomething()")

SetOnBeforeUnload(text value)

Sets the OnBeforeUnload attribute script when the OnBeforeUnload event is triggered.

Parameters

  • text value: The current OnBeforeUnload attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
accept:SetOnBeforeUnload("doSomething()")

SetOnBlur(text value)

Sets the onblur attribute. The onblur attribute is the script to be triggered when the onblur even occurs. OnBlur is fired the moment an element loses focus.

Parameters

  • text value: The current onblur script.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
accept:SetOnBlur("upperCase()")

SetOnCanPlay(text value)

Sets the OnCanPlay attribute script when the OnCanPlay event is triggered.

Parameters

  • text value: The current OnCanPlay attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnCanPlay("doSomething()")

SetOnCanPlayThrough(text value)

Sets the OnCanPlayThrough attribute script when the OnCanPlayThrough event is triggered.

Parameters

  • text value: The current OnCanPlayThrough attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnCanPlayThrough("doSomething()")

SetOnChange(text value)

Sets the OnChange attribute. The OnChange attribute is the script to be triggered when the OnChange event occurs. OnChange is fired the moment an element content is changed on a form.

Parameters

  • text value: The current OnChange script.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
accept:SetOnChange("upperCase()")

SetOnClick(text value)

Sets the OnClick attribute script when the OnClick event is triggered.

Parameters

  • text value: The current OnClick attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnClick("doSomething()")

SetOnContextMenu(text value)

Sets the OnContextMenu attribute. The OnContextMenu attribute is the script to be triggered when the OnContextMenu event occurs. OnContextMenu is fired when a context menu is selected.

Parameters

  • text value: The current OnContextMenu script.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
accept:SetOnContextMenu("upperCase()")

SetOnDoubleClick(text value)

Sets the OnDoubleClick attribute script when the OnDoubleClick event is triggered.

Parameters

  • text value: The current OnDoubleClick attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDoubleClick("doSomething()")

SetOnDrag(text value)

Sets the OnDrag attribute script when the OnDrag event is triggered.

Parameters

  • text value: The current OnDrag attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDrag("doSomething()")

SetOnDragEnd(text value)

Sets the OnDragEnd attribute script when the OnDragEnd event is triggered.

Parameters

  • text value: The current OnDragEnd attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDragEnd("doSomething()")

SetOnDragEnter(text value)

Sets the OnDragEnter attribute script when the OnDragEnter event is triggered.

Parameters

  • text value: The current OnDragEnter attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDragEnter("doSomething()")

SetOnDragLeave(text value)

Sets the OnDragLeave attribute script when the OnDragLeave event is triggered.

Parameters

  • text value: The current OnDragLeave attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDragLeave("doSomething()")

SetOnDragOver(text value)

Sets the OnDragOver attribute script when the OnDragOver event is triggered.

Parameters

  • text value: The current OnDragOver attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDragOver("doSomething()")

SetOnDragStart(text value)

Sets the OnDragStart attribute script when the OnDragStart event is triggered.

Parameters

  • text value: The current OnDragStart attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDragStart("doSomething()")

SetOnDrop(text value)

Sets the OnDrop attribute script when the OnDrop event is triggered.

Parameters

  • text value: The current OnDrop attribute.

Example



use Libraries.Web.Page.MouseAttributeAccepter
use Libraries.Web.Page.Attribute

MouseAttributeAccepter accept
accept:SetOnDrop("doSomething()")

SetOnDurationChange(text value)

Sets the OnDurationChange attribute script when the OnDurationChange event is triggered.

Parameters

  • text value: The current OnDurationChange attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnDurationChange("doSomething()")

SetOnEmptied(text value)

Sets the OnEmptied attribute script when the OnEmptied event is triggered.

Parameters

  • text value: The current OnEmptied attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnEmptied("doSomething()")

SetOnEnded(text value)

Sets the OnEnded attribute script when the OnEnded event is triggered.

Parameters

  • text value: The current OnEnded attribute.

Example



use Libraries.Web.Page.MediaAttributeAccepter
use Libraries.Web.Page.Attribute

MediaAttributeAccepter accept
accept:SetOnEnded("doSomething()")

SetOnError(text value)

Sets the OnError attribute script when the OnError event is triggered.

Parameters

  • text value: The current OnError attribute.

Example

use Libraries.Web.Page.WindowAttributeAccepter
use Libraries.Web.Page.Attribute

WindowAttributeAccepter accept
accept:SetOnError("doSomething()")

SetOnFocus(text value)

Sets the OnFocus attribute. The OnFocus attribute is the script to be triggered when the OnFocus event occurs. OnFocus is fired the moment an element gains focus.

Parameters

  • text value: The current OnFocus script.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttributeAccepter accept
accept:SetOnFocus("upperCase()")

SetOnFormChange(text value)

Sets the OnFormChange attribute. The OnFormChange attribute is the script to be triggered when the OnFormChange event occurs. OnFormChange is fired the moment the form is changed.

Parameters

  • text value: The current OnFormChange script.

Example



use Libraries.Web.Page.FormAttributeAccepter
use Libraries.Web.Page.Attribute

FormAttribut