| Issue 169: | Lack of contact | |
| 3 people starred this issue and may be notified of changes. | Back to list |
|
Hello, i have no clue where to ask questions. I dont see a contact possibility on the nyromodal page so i do it here. I am trying to open a nyromodal though an click event of a hidden DOM event. The manual gives as example <a href="#DOMOBJECT" class="nyromodal"> but what is its equivalent on a other tag like a input?
Feb 16, 2009
Project Member
#1
nyro...@gmail.com
Feb 16, 2009
If i understand you correctly you would like to call nyromodal when clicking an input
tag. in this case you can code something like:
$('#inputID').click(function(e){
e.preventDefault();
$.nyroModalManual({
bgColor: '#3333cc',
other option etc.
});
return false;
});
check out for Manual call for other options.
Feb 17, 2009
Yes i understand but to show a dom object, normaly with a link you use the HREF to hide and show a dom object. In case of the input, where in the nyroModalManual do you refer to the hidden DOM object?
Feb 17, 2009
You have to use the url setting:
$('#inputID').click(function(e){
e.preventDefault();
$.nyroModalManual({
bgColor: '#3333cc',
url: '#DOMOBJECT',
// other option etc.
});
return false;
});
Feb 17, 2009
aaaaah in the URL. Thank you very much it works now
Feb 25, 2009
Hello, I also have a question.. and got nowhere to ask it... (is there any forum for nyromodal?) my question is - how can i cancel the loading/hiding animation? I've read the entire documentation.. and I know that its possible (from the documentation page: "If you want simply show the element without any animation, you can simply do an show in the element and execute the callback").. The explanation was not clear to me... could you please show a snippet of code that shows how can it be accomplished? I'd also like to thank the developer(s) of nyromodal for this great plugin! Many thanks in advance!
Feb 25, 2009
THIS is the right place to ask questions about nyroModal.
If you want remove the loading animation and the hiding animation, here is what you
can do:
$.nyroModalSettings({
showLoading: function(elts, settings, callback) {
callback();
},
showContent: function(elts, settings, callback) {
elts.contentWrapper
.css({
width: settings.width+'px',
height: settings.height+'px',
marginTop: settings.marginTop+'px',
marginLeft: settings.marginLeft+'px'
})
.show();
elts.loading.fadeOut(200, callback);
},
hideContent: function(elts, settings, callback) {
elts.contentWrapper.hide();
callback();
}
});
I don't know if it's exactly what you want.
(Please next time create your own issue)
Status:
WontFix
Feb 26, 2009
Thank you! that's exactly what I needed! And I'm sorry for not opening a new issue... I commented to this thread, because its not a bug/feature request, just a request for help... Sorry for that! |
||||||||