Chris Domigan wrote:
> Ah whoops! You use it like this:
>
> $("#cancelButton").trigger("click");
That is what I have done. A more "jqModal" way [read; militaristic
saving of bytes ;)] would be to write;
$("#cancelButton").click();
Anyhow.. what do you guys think of extending the "jqModal element" to
provide cleaner means of adding triggers, executing the close event, and
so fourth?
Something like;
var e = $('#dialog').jqm();
... some code that adds new triggers, close buttons ...
$.jqm.addTrigger('a.newTriggers',e);
$.jqm.addClose('a.newClose',e);
OR
e.jqmAddTrigger('a.newTriggers');
e.jqmAddClose('a.newClose');
OR
I'm open to suggestions ;)
~ Brice
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/