error in xforms-ready and xxforms:dialog

Posted by James Gu on
URL: https://discuss.orbeon.com/error-in-xforms-ready-and-xxforms-dialog-tp43077.html

I call a submission in xforms-ready and the submission fails. Then I found I can not open the dialog I put on page. Is there any relationship between xforms-ready and xxforms:dialog?
Also, it seems I can not show dialog in xforms-ready. Is there anyway to display it? I want to know how to use javascript to open the dialog.


        <xxforms:dialog id="error-dialog" appearance="full" level="modal"
                        close="true" draggable="true" visible="false">
            <xforms:label>Error Dialog</xforms:label>
            <xhtml:div id="dynamic-iframe-div" class="dynamic-iframe-div"/>
        </xxforms:dialog>

This is the trigger I added on page.
                     <xforms:trigger id="test-trigger">
                        <xforms:label>test</xforms:label>
                        <xforms:action ev:event="DOMActivate">
                            <xxforms:show dialog="error-dialog"/>
                        </xforms:action>
                    </xforms:trigger>