The dialog framework uses an iframe to display dialog content. The developer creates the iframe page and provides the Url to display, as well as the name, heading, height and width of the dialog.
The framework expects the following client-side API on the iframe page:
CopyC#// Called by the framework when the dialog is displayed
// The framework behavior includes a reference to the editor
function Initialize(frameworkBehavior)
// Called by the framework when the OK button is clicked
function OnOK()
// Called by the framework when the dialog is closed
function OnClose()
Note: The onsubmit event for the form should also return false.
<html> <head> <title>My Dialog</title> </head> <body> <form id="form1" action="MyDialog.htm" onsubmit="return false;"> <div>My dialog content</div> </form> </body> <script type="text/javascript"> var fx = null; function Initialize(frameworkBehavior) { // Store the reference fx = frameworkBehavior; } function OnOK() { // Do something } function OnClose() { // Clean up } </script> </html>