Issue 97: documentation issue: How to pass values from modal window to parent page
Status:  Fixed
Owner: ----
Closed:  Jan 2009
Reported by masquerade2ruslan, Oct 17, 2008
What steps will reproduce the problem?
1. http://nyromodal.nyrodev.com/#usage
2.
3.

I was looking here for posibility how to pass back values from modal window
into parent page element but seems that documentation doesn't reflect a
such kind of information. Is it so or I've missed something ?

Oct 22, 2008
Project Member #1 nyro...@gmail.com
Could you tell us a little bit more about what you're trying to do?
Labels: -Type-Defect Type-Other
Oct 23, 2008
#2 Mamali.S...@gmail.com
There are few callback function such as hideContent, hideBackground, or endRemove
that you can use to get values form modal window when it's going to be closed. 
Oct 26, 2008
#3 masquerade2ruslan
Sure ... in the main page i have a rich text editor and in this modal window a web
file manager. The intented scenario is to pass selected file id from modal to editor
for future processing.
Oct 27, 2008
Project Member #4 nyro...@gmail.com
mmm, regarding what you said, I would do something like:
$.nyroModalSettings({
	endFillContent: function(elts, settings) {
		$('.FileChoose').click(function(e) { // action for selecting the file
			e.preventDefault();
			// Do what you need to update your text editor
			$.nyroModalRemove();
		});
	}
});

Hope it will help.
Jan 26, 2009
Project Member #5 nyro...@gmail.com
(No comment was entered for this change.)
Status: Fixed