This plugin is utility for convinience of communication between iframes in HTML page, it is mimicking from Qt’s signal/slot concept.
you can do with jquery.sigslot.js:
Usage
([ .. ] for opton , ‘|’ for seperator)
1. slot
$.slot.add( 'sig/slot id', function [,repeatable] )
$.slot.remove( 'sig/slot id'[, function]);
$.slot.countOf( 'sig/slot id');
2. signal
$.signal( 'sig/slot id', args, [, options ] );
direction = $.signal.SELF | $.signal.UPLINK | $.signal.FOLLOWLINK | $.signal.OTHER | $.signal.BROADCAST purpose: direct where to pass signal. default for all iframes include window.self - $.signal.SELF (send signal only to current page that the signal occur) - $.signal.UPLINK (send signal only to parents iframes EXCLUDE current page that the signal occur) - $.signal.FOLLOWLINK (send signal only to child iframes EXCLUDE current page that the signal occur) - $.signal.OTHER (send signal to all iframe pages EXCLUDE current page that the signal occur) - $.signal.BROADCAST (send signal to all iframes INCLUDE current page that the signal occur)
direction = $.signal.SELF | $.signal.UPLINK | $.signal.FOLLOWLINK | $.signal.OTHER | $.signal.BROADCAST
sync = true | false purpose: select async or sync call. boolean type. default is sync.
sync = true | false
* $.signal will NOT cause error, if there’s no slot function for signal-id. It will do nothing.