Issue 320: Unable to pass a content element directly to nyroModal.
Status:  Fixed
Owner: ----
Closed:  Aug 2009
Reported by arun.off...@gmail.com, Aug 25, 2009
What steps will reproduce the problem?
    When using nyroModalManual(), I want to pass the ID of a DOM element
like DIV to the settings object.
    Now the nyroModal.settings expect us to pass a from parameter which is
another DOM element, using this element's href of action value we will find
the URL to be loaded, it can be ID of another DOM element of a URL which
will return the HTML to be loaded.

What is the expected output? What do you see instead?
    Instead of passing the from value which is a DOM element using which
nyroModal decides what to be loaded, it will be better if we can pass the
ID of a DOM element or a DOM element whose content should be displayed in
the the popup. 
    Something like 
        $.nyroModalManual({
	    contentEl : 'simple-dialog'
	});
        Where simple-dialog is the ID of a DIV whose content has to be
displayed in the popup


What version of the product are you using? On what operating system?
    I'm using nyroModal-1.5.2 and jquery 1.3.2

Please provide any additional information below.
    Now even if I'm using a manual call to create a popup, I'm forced to
create a hidden href to pass as the 'from' value for the settings object, I
think we can avoid this if we can support a contentEl directly. It can act
as a complement to the 'content' settings value.

Aug 25, 2009
#1 arun.off...@gmail.com
Now I'm forced to do something like 
    $.nyroModalManual({
        content : $('#simple-dialog').html()
    });
instead of 
    $.nyroModalManual({
        contentEl : 'simple-dialog'
    });

Aug 26, 2009
Project Member #2 nyro...@gmail.com
you could do it like:
$.nyroModalManual({
  url: '#simple-dialog'
});

Explained here:
http://nyromodal.nyrodev.com/wiki/index.php/Manually_open_a_modal_using_a_DOM_element
Status: Fixed
Labels: Type-Other
Aug 26, 2009
#3 arun.off...@gmail.com
Thanks for the solution