====== Modal Pop-up Plugin ====== ---- plugin ---- description: this is a plugin that provides a modal pop-up window author : James GuanFeng Lin email : guanfenglin@gmail.com type : action lastupdate : 2009-03-18 compatible : depends : conflicts : similar : tags : navigation, menu, popup ---- ====Donation==== If you have used this plugin and you think it saved your development time, please show some mercy to my time by donating a dollar or two. {{http://widget.chipin.com/widget/id/d1f89456c806f24a?.swf?250x250 }} ===== Download and Installation ===== http://jump.fm/BKHGK extract and drop the folder into plugins folder. ===== What does it do? ===== it is a action plugin that secretly draws a modal div into every display page. ===== How do I use it? ===== it can be used by other plugins or scripts to reveal the modal popup window. simply by calling the JavaScript function modal.reveal() you can then use JavaScript to write the innerHTML of a div called "modalBody" modal.setContent('abc'); to see an example, please look at another plugin I developed, which uses the modal plugin to do easy ACL setting [[plugin:aclmadeeasy]] FIXME ===== What it looks like? ===== {{http://farm4.static.flickr.com/3626/3363991089_e78c962b22.jpg?v=0}} ===== API ===== ^method^description| |modal.reveal()|shows modal popup| |modal.setWidth(int width)|sets the popup box width| |modal.setHeight(int height)|sets the popup box height| |modal.hide()|close modal popup| |modal.setTitle(string title)|sets the popup box title| |modal.setContent(string HTML)|sets the popup box content, usually html string| |modal.loadContentFromDiv(string divID,bool move)|get the content from a div, move content if 2nd param is true, or copy if false)|