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
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/
('#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
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/
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
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
Brice - that would be brilliant, that sort of functionality is sorely
needed.
Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/