| Issue 335: | Can nyroModal be asured do sth after modal show? | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
What is the expected output? What do you see instead?
I need to draw a progressbar after Modal show, But it totally excuted ahead.
What version of the product are you using? On what operating system?
nyroModal-1.5.2 on window xp system.
Please provide any additional information below.
As bellow, I called Progressbar on endShowContent callback, In Progressbar,
a alert will show.when it completed. But to my disappointed, Modal have not
show,a alert popped.Very unfriendly,how can I solve the problem?
$.nyroModalManual({
endShowContent: function(elts, settings) {
LoadingBar = $('.LB_inner');
$('.LB_inner').ProgressBar();
}
});
Sep 26, 2009
Project Member
#1
nyro...@gmail.com
Status:
Fixed
Sep 26, 2009
No, I have set this before,like this:
$.nyroModalSettings({
debug: false,
modal:settings.modal,
blocker:settings.blocker,
content:settings.content,
minHeight: settings.minHeight,
minWidth: settings.minWidth
});
And then use following codes:
$.nyroModalManual({
endShowContent: function(elts, settings) {
LoadingBar = $('.LB_inner');
$('.LB_inner').ProgressBar();
},
endRemove: function(elts, settings) {
window.clearInterval(getHandle);
}
});
Additionally, I had tried to put all settings to $.nyroModalSettings while abandoned
the $.nyroModalManual function, but the problem remains. That means
$('.LB_inner').ProgressBar() have executed, while the Modal haven't show yet.
Sep 27, 2009
I don't understand how your code works. Where is the url you want to load ? What is loaded ?
Sep 28, 2009
First, the default url is the current page. And Secondly I can use achor's href attributes. In my code, I used like this: <a href="#loginDiv" class="nyroModal" >Login</a> so after click the links, the Modal will appear. Can I used it like this? |
||||||||