Handling Button Click/Results in Dialog

How to open remote pages as modal dialogs, how to open dialogs based on local HTML, and how to respond to OK or Cancel events.

http://www.endusersharepoint.com/EUSP2010/2010/05/27/client-side-ajax-applications-in-sharepoint-2010-%E2%80%93-part-5-modal-dialogs/

A Typical Javacript function that opens a Page in a Sharepoint Dialog framework. Note the SP.UI.ModalDialog.showModalDialog.

If yu have a OK button and Cancel button on your Dialog Page, and want to handle them different, here it is:

To close a dialog box, use SP.UI.ModalDialog.commonDialogClose

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: