dialogJSHandler

Description: Declares a JavaScript handler to execute upon user selection of the dialog.

JavaDoc: Click here

Body content: JSP content.

Attributes: N/A

Examples:

<dif:document>
        <dif:dialog title="Confirm operation" bindTo="formName:submit">
          <p>the following tasks will be executed:</p
          <ul><li></li></ul>
          <p>Are you sure?</p>

      <dif:dialogButton id="yes", title="Yes, go ahead!" />
      <dif:dialogButton id="no", title="NO, please stop!" />
      <dif:dialogJSHandler>if (btn == 'yes') document.forms.formName.submit();</dif:dialogJSHandler>
      <dif:dialogJSCondition>document.forms.formName.fieldName.value == 'S'</dif:dialogJSCondition>
    </dif:dialog>
    ...
</dif:document>

See also:

Back to tag reference