Simple Signal Slot
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/sigslot
软件介绍
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.
xHTML+CSS+Dreamweaver CS3标准网站构建实例详解
李晓斌 / 第1版 (2007年9月1日) / 2007-9 / 49.9
《xHTML+CSS+Dreamweaver CS3标准网站构建实例详解》特别适合网站美工、网站前端架构师、网页设计爱好者、Wap页面设计师作为学习Web标准网页制作的入门图书,也适合Web标准网站高手作为案头随手查询手册,也适合作为美术院校和培训学校相关专业的培训教材。一起来看看 《xHTML+CSS+Dreamweaver CS3标准网站构建实例详解》 这本书的介绍吧!
