Skip to content

A very simple plugin for jQuery to wait until a method is ready on a DOM element.

Notifications You must be signed in to change notification settings

gmilby/MethodReady

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

MethodReady

This is a very simple plugin for jQuery to wait for a DOMElement method to become ready before firing. The most common use case here is to wait for an ExternalInterface method in Flash, which isn't guaranteed to be ready even when the window has fully loaded. MethodReady will set a simple timeout and once the method appears on the element it will fire.

Usage:

The callback is passed no arguments, and simply the DOMElement itself as the scope:

$('element').methodReady('playAudio', function() {
  this.playAudio(someURL);
});

About

A very simple plugin for jQuery to wait until a method is ready on a DOM element.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published