DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:modalpopup

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

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

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.

d1f89456c806f24a?.swf

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 FIXME

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: 2017-10-20 17:18 by Aleksandr