Kristinn Sigmundsson wrote:
> You could do a $(".jqmClose").click(), only thing I could come up with
> without having spend much time with jqModal
>
> //Kristinn
That is the current method -- you trigger the close event which has been 
attached to an element via $(e).click(); IIf you have multiple dialogs 
close links, you'll want to limit the scope of the close trigger with 
something like;

$(".jqmClose",$('#dialog')).click();

I will be adding functionality for a cleaner open/close method through hooks. 

From; http://www.nabble.com/jqModal-updated-tf3229734.html#a8973756 (bottom)

"I plan to add the following functions in revision 7;

$.jqmShow()  --  open/show the dialog 

$.jqmHide() -- hide/close the dialog

---

$.jqmAddTrigger(e) -- assign a trigger (jqmShow()) event to the passed 
element(s)

$.jqmAddClose(e) -- assign a close (jqmHide()) event to the passed 
element(s)


Of course jqmAddTrigger()  and  jqmAddClose()  are just shortcuts for;

   $('selector').click(function() { dialog.jqmShow(); }); "

--

The proposed $.jqmHide() & $.jqmShow() must be called on an element which has 
had $.jqm() called on it. I'll also be removing the auto-fire property, as it 
will become extraneous with these additions & can be replaced with;

$(e).jqm({autofire: true}) ==  $(e).jqm().jqmShow();

Let me know if you have any suggestions/thoughts.

~ Brice





_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to