Meta100 Blog
Designing Fun.
RSS  |  Archive    

mDOMupdate

Triggers the event ‘DOMUpdated’ on DOM manipulation via jQuery.


Requires: jQuery.


Install: Add the line after jQuery.

<script type="text/javascript" src="http://meta100.github.com/mDOMupdate/javascripts/mDOMupdate.js" charset="UTF-8"></script>


Or download from https://github.com/meta100/mDOMupdate.

Use:

$(document).bind('DOMUpdated', function () { /* Insert code to execute here. */ });

Use Firebug lite or your browsers builtin console to modify the page DOM, via jQuery, an alert will fire to let you know the event has triggered.


For Example:

$('p').append('<span> *HI!*</span>');

Notes

  1. meta100 posted this

  4:30 pm, by meta100, [ 7 notes ] Comments