Modal Pop-up plugin

Compatible with DokuWiki

No compatibility info given!

plugin this is a plugin that provides a modal pop-up window

Last updated on
2009-03-18
Provides
Action

Tagged with menu, navigation, 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.

The Adobe Flash Plugin is needed to display this content.

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 aclmadeeasy

What it looks like?

farm4.static.flickr.com_3626_3363991089_e78c962b22.jpg

API

methoddescription
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)
plugin/modalpopup.txt · Last modified: 2011/06/18 17:22 by ach
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate