On Wed, Dec 16, 2009 at 11:39 PM, DavidLozzi <dlo...@delphi-ts.com> wrote:
> Howdy, > > I have a modal in my page and it works, for the most part. I have two > questions/issues > > 1) I would like to use my own server controls for buttons... rather, I > need to prompt the user for info and then write it to a database. I > was hoping to just use a server control for the button but when the > modal displays, the click event normally handled by the server doesn't > fire. I'm guessing the jquery is overriding it? What's the best way to > get the info in a modal into my database? > Have your button callback function send the data, or call the function that sends the data to the server. > > 2) How can I remove the X close mark in the window and only use the > buttons to close? You can do $('#myDialog').closest('.ui-dialog').find('.ui-dialog-titlebar-close').remove(); > This is a required window and I need to capture if > they close it without specifying information. > That's what the beforeclose event is designed for, and it will work whether the user closes via the titlebar x or whether the .dialog('close') method is called otherwise. See http://docs.jquery.com/UI/Dialog#event-beforeclose - Richard -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.