For the benefit of others there, we'd be happy to answer your question over
on the jQuery UI list:

http://groups.google.com/group/jquery-ui

Thanks.

- Richard

On Wed, Feb 11, 2009 at 8:48 AM, EJB <e...@capestreetfarm.com> wrote:

>
> Hi all.
>
> A very simple jquery UI dialog question as I undertake learning this
> new tool:
>
> I have a button:
>
> <asp:Button id="btnCancelMeeting" Text="Cancel Event" runat="server"
> OnClientClick='javascript:return jsConfirmCancellation();' />
>
> that calls this function:
>
> function jsConfirmCancellation() {
>
> return  $(document).ready(function() { $('#CancelDialog').dialog
> ('open'); });
>
> }
>
> which opens this dialog:
>  <div id="CancelDialog" title="Cancel and Event or Meeting"><p>Cancel
> this event.</p></div>
>
> using this function:
>
>        $(function() {
>        // Cancel Event Dialog Box
>        $('#CancelDialog').dialog({
>                autoOpen: false,
>                width: 500,
>                buttons: {
>                        "Cancel This Event": function()
> {$(this).dialog("close");return
> true;},
>                        "Do Not Cancel": function()
> {$(this).dialog("close");return
> false;}
>                }
>        });
>
> What doesn't happen is the jsConformcancellation function is not
> returning "true" or "false" depending on the button clicked.
>
> I am a brand new (2 hours so far) jquery/javascript programmer, so
> sorry for the perhaps amateurish question...
>

Reply via email to