Simple Signal Slot

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-11 20:28:33

软件介绍

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:

  • send signal to N-depth iframe page
  • async. or sync. communication
  • exclude or include particular iframe
  • allow multiple slot or just one

Usage

([ .. ] for opton , '|' for seperator)

    1. slot
  • $.slot.add( 'sig/slot id', function [,repeatable] )
  • repeatable = true | false
    false: allow only one slot function for signal-id (default)
    true: allow every slot function for signal-id, even it is identical. so, slot function is called as many as times you registered
    ex) $.slot.add( 'test', [a,b,c,d], true );
  • $.slot.remove( 'sig/slot id'[, function]);
  • * if function is omitted, remove all slot functions for signal-id
  • $.slot.countOf( 'sig/slot id');
  • * return number of registered slot function for signal-id

    2. signal
  • $.signal( 'sig/slot id',  args, [, options ] );
  • * args: arguments passing to slot function. wrap by [] if you want to pass more than one.
    * options : simple object, for ...

      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)

      sync = true | false
       purpose: select async or sync call. boolean type. default is sync.

    * $.signal will NOT cause error, if there's no slot function for signal-id. It will do nothing.

本文地址:https://codercto.com/soft/d/23174.html

Unix/Linux编程实践教程

Unix/Linux编程实践教程

Bruce Molay、杨宗源、黄海涛 / 杨宗源、黄海涛 / 清华大学出版社 / 2004-10-1 / 56.00元

操作系统是计算机最重要的系统软件。Unix操作系统历经了几十年,至今仍是主流的操作系统。本书通过解释Unix的工作原理,循序渐进地讲解实现Unix中系统命令的方法,让读者理解并逐步精通Unix系统编程,进而具有编制Unix应用程序的能力。书中采用启发式、举一反三、图示讲解等多种方法讲授,语言生动、结构合理、易于理解。每一章后均附有大量的习题和编程练习,以供参考。 本书适合作为高等院校计算机及......一起来看看 《Unix/Linux编程实践教程》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具