[jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread dalvarado
Hi, I'm trying to create a modal dialog using http://dev.iceburg.net/jquery/jqModal/ where I want to have two buttons, Save and 'Cancel. Clicking Save should perform some action, and then close the window. However, if I define the onclick handler for the Save button, the window no longer

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread Benjamin Sterling
Dave, I am in the process of figuring that out myself, give me a few minutes, I just about have it. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread dalvarado
('#cancelButton'); ? - Dave ---Original Message--- From: Chris Domigan [EMAIL PROTECTED] Subject: Re: [jQuery] jqModal: Defining a custom event before closing the window? Sent: Feb 14 '07 22:57 You could just set Cancel as the only button that closes the window. Then at the end

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread Chris Domigan
Ah whoops! You use it like this: $(#cancelButton).trigger(click); I must be half asleep... :) Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread dalvarado
Rock on! Works perfectly. Thanks so much, - ---Original Message--- From: Chris Domigan [EMAIL PROTECTED] Subject: Re: [jQuery] jqModal: Defining a custom event before closing the window? Sent: Feb 14 '07 23:18 Ah whoops! You use it like this: $(#cancelButton

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread Brice Burgess
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

Re: [jQuery] jqModal: Defining a custom event before closing the window?

2007-02-14 Thread Chris Domigan
Brice - that would be brilliant, that sort of functionality is sorely needed. Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/