Issue 335: Can nyroModal be asured do sth after modal show?
Status:  Fixed
Owner: ----
Closed:  Sep 2009
Reported by wenzhao...@163.com, Sep 25, 2009
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
In your code, you're using the nyroModalManual function without any url or something
like that. By doing so, the endShowContent is not used anywhere, is it?
To solve you're problem, use $.nyroModalSettings instead and it should work.
Status: Fixed
Sep 26, 2009
#3 wenzhao...@163.com
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
Project Member #4 nyro...@gmail.com
I don't understand how your code works.
Where is the url you want to load ?
What is loaded ?
Sep 28, 2009
#5 wenzhao...@163.com
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?