Skip to content
premasagar edited this page Sep 13, 2010 · 9 revisions

load(handler)

Binds the handler function to the AOMI load event, which occurs whenever the iframe is added to the DOM and its document loads. In the handler function, this refers to the AOMI object. See API: Events.

ready(handler)

Binds the handler function to the AOMI ready event, which occurs just before the first load event. In the handler function, this refers to the AOMI object. See API: Events.

Advanced use: The event will also occur if the iframe’s document is re-created, e.g. via aomi.document('<div>Some new content</div>') or when aomi.reload(true) is called in Internet Explorer.

jQuery event methods

The following methods can be used in a similar way to the standard jQuery event methods . In the handler functions for these methods, the this keyword will refer to the AOMI object, and not to the iframe element (usually, jQuery event methods use this to refer to the element itself). This allows other AOMI methods to be used within the handler.

  • bind(eventType, handler)
  • unbind(eventType, handler)
  • one(eventType, handler)
  • trigger(eventType)

Clone this wiki locally