Simple Modal: Just another Window Modal – Powered by Mootools
Posted on October 10, 2011, under General, Graphics,
Bookmark it
SimpleModal is a Mootools plugin to create simple, yet professional-looking modal windows including alerts and confirm messages with only a few lines of code. Confirm configuration involves the use of callbacks to be applied to affirmative action; it can work in asynchronous mode and retrieve content from external pages or getting the inline content.
SIMPLEMODAL is not a lightbox although the possibility to hide parts of its layout may partially make it similar.
Content can also be retrieved via AJAX. Here’s an example below:
Snippet code Javascript:
#JS
$("myElement").addEvent("click", function(){
var SM = new SimpleModal({"width":600});
SM.addButton("Action button", "btn primary", function(){
this.hide();
});
SM.addButton("Cancel", "btn");
SM.show({
"model":"modal-ajax",
"title":"Title",
"param":{
"url":"file-content.php",
"onRequestComplete": function(){ /* Action on request complete */ }
}
});
});
Snippet code HTML:
#HTML Open Modal
- Source: http://simplemodal.plasm.it/
Looking for something else?
Check the following premium web applications...
Lightbox Evolution for WordPressUploaded on August 18, 2010 by aeroalquimiaTotal Sales: 1130$18
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- October 10, 2011
- article by Gabriel C.
- Share your thoughts!
Related Posts
-
LeanModal: Super Simple Lightweight Modal Window Pluginat July 3, 2011 with 1 comment
-
WordPress Login Modal Box: SimpleModal Loginat January 23, 2010
-
How to Implement a jQuery AJAX Login Form into a Modal Boxat April 24, 2009 with 85 comments
-
Creating an Exit Modal Box using the jQuery libraryat April 25, 2009 with 28 comments
-
Facebook-style Lightbox/Modalbox powered by jQuery and MooToolsat March 12, 2010

