Issue 383: too many questions
Status:  Fixed
Owner: ----
Closed:  Apr 2010
Reported by poi...@gmail.com, Nov 18, 2009
HI, I'm trying to set my values to sime CSS parameters by fly.
like this -
$('a.imageInfo').click(function(e) {
	e.preventDefault();
	$.nyroModalManual({
		url: $(this).attr('href'),
		modal: true,
		closeButton: '<a href="#" class="nyroModalClose" 
id="closeBut" title="close">Close</a>',
	});
});
1.Could I have close button and not give a chance user to close this 
window by clicking at dark background DIV ? I mean i want to get it's like 
modal window but with close button.

2. When I make ajax call and want show the result at the modal window, i 
need to send to client all HTML structure ? head/html/body ? why ? how i 
could make working only when I need to do <?php echo jsone_encode(...); ?>

3. as I see you always change margin-top of wrapper div by fly.. how i 
could  change it ? i need show modal window in one constant position. I 
mean i want to get for wrapper margin-top: 0px. How I could do it ?

Thanks.

P.S. Forum or maybe extendet wiki for your plugin it will be great.

Thanks.
Apr 16, 2010
Project Member #1 nyro...@gmail.com
1) To remove the ability to close the modal by clicking the background, add:
endFillContent: function(elts, settings) {
	elts.bg.unbind('click.nyroModal');
}

2) Because it's the default behavior of nyroModal: By simply using the HTML content.
If you want to use a json object and create the HTML on the fly, bind the click of
your link, do your ajax call and then open the modal with the content setting,
containing your HTML structure to show on the modal.

3) To do so, you'll have to rewrite almost all animation callback to do what you
want. I recomand you copy all animation function, set them using nyroModalSettings
and then rewrite them to do what you want.

Hope it helped, even a whiiiiile ago, sorry for this terrible delay...
Status: Fixed
Apr 16, 2010
#2 poi...@gmail.com
Thanks a lot :)