Advantages of jmpopups
- You can open more than one popup the same time;
- There is no pre-defined layout, so you are able to create your own layout;
- You can call the popups using ajax or using the content of a hidden html element;
- The jmpopups is concerned about acessibility. When a popup is opened, the focus will be kept only inside that popup. It will directly focus the first focusable element. The idea is to help users who use the keyboard for browsing (f.e. disabled people).
- It works for IE 6+, FF 1.5+, Opera 9.*, Chrome 2.*, Safari 4.*.
- Compatible with JQuery 1.3.*
Usage Example
$.openPopupLayer({
name: "contactForm",
width: 300,
url: "contact_form.html",
success: function() {
alert("It is loaded");
}
});
Interested on it? Access the website project: http://jmpopups.googlecode.com
Do you want to see an example? http://otavioavila.com/jmpopups-example/
6 Comments:
I want to pass the URL value from the link to the function. How would the code change to make that happen?
By
Bill, at 2:31 PM
nevermind... i figured it out. great plugin!
By
Bill, at 2:46 PM
Hi Otavio,
I tried jmpopups, looks great.
There seems to be a resize bug in IE8:
When the browserwindow is maximized or resized to the previous size, the pop up moves to the center of the window (correct).
When the browserwindow is resized by dragging the edges of the window, the pop up keeps moving after the mousebutton is released (not correct).
This behavior occurs in IE8 but not in Firefox.
The pop up cannot be closed when it is moving randomly across the screen in IE8.
Regards,
Mike
By
De Mies, at 4:29 AM
See my bugreport above, this can be fixed like:
reference the script from http://benalman.com/projects/jquery-dotimeout-plugin/
change the resize script in jquery.jmpopups-0.5.1.js to:
// Window resize (IE and Safari fire this event continually)
$(window).resize(function() {
$.doTimeout('resize', 250, function() {
setScreenLockerSize();
setPopupLayersPosition();
});
});
Regards,
Mike
By
De Mies, at 12:40 AM
Hello,
First I find a very good plugin,
I just need to know if I can set the position in the window, type top: 100, left: 200,
Thank you.
By
Anonymous, at 2:17 AM
Hi, I do have only one minor issue actually: in IE7 a colleague of mine sometimes only gets a 100% black window instead of one with 60% transparency, as it was defined. This only happens sometimes, not every time. Do you have an idea, why this happens or how this can be fixed? I never had this problem on my own, but that might be because I am already using IE8 and FireFox 3.5
By
Bianca, at 8:39 AM
Post a Comment
<< Home