Pop up with xform

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Pop up with xform

Prameela R

Hello All,

 

Is there a way to create an Xform popup window with a textbox saving the text box value into parent xform?

 

Prameela.

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Pop up with xform

Prameela R

Thank you I got an example

Prameela.

 


From: Prameela R [mailto:[hidden email]]
Sent: Thursday, March 26, 2009 12:20 PM
To: [hidden email]
Subject: [ops-users] Pop up with xform

 

Hello All,

 

Is there a way to create an Xform popup window with a textbox saving the text box value into parent xform?

 

Prameela.

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Pop up with xform

Kamlesh
Hi Prameela,

Can you give the link of the example.

- Kamlesh


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Pop up with xform

Prameela R
Hi Kamlesh,
 I got that example from orbeon xform-sandbox

http://localhost:8080/orbeon/source-viewer/xforms-sandbox/



<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xhtml:head>
        <xhtml:title>XForms Dialog</xhtml:title>
        <xforms:model>
            <xforms:instance id="instance">
                <instance>
                    <text>Some text here</text>
                    <message/>
                </instance>
            </xforms:instance>
        </xforms:model>
    </xhtml:head>
    <xhtml:body>

        <!-- The dialog -->
        <xxforms:dialog id="myDialog" level="modeless" close="true"
draggable="true" appearance="full" neighbor="message-output">

            <xforms:setvalue ev:event="xxforms-dialog-open"
ref="message">Dialog open</xforms:setvalue>
            <xforms:setvalue ev:event="xxforms-dialog-close"
ref="message">Dialog closed</xforms:setvalue>

            <xforms:label>Dialog title</xforms:label>
            <xhtml:h3>Please complete the form</xhtml:h3>
            <xhtml:p>
                <xforms:input ref="text" incremental="true">
                    <xforms:label>Name:</xforms:label>
                    <xforms:hint>This is a super cool hint for this input in
a dialog</xforms:hint>
                </xforms:input>
            </xhtml:p>
            <xforms:textarea ref="text" mediatype="text/html"/>
            <xhtml:p>
                <xforms:trigger>
                    <xforms:label>Hide dialog</xforms:label>
                    <xxforms:hide dialog="myDialog" ev:event="DOMActivate"/>
                </xforms:trigger>
            </xhtml:p>
        </xxforms:dialog>

        <!-- Button to show the dialog -->
        <xforms:trigger id="show-dialog-below-output-trigger">
            <xforms:label>Show dialog below output</xforms:label>
            <xxforms:show ev:event="DOMActivate" dialog="myDialog" />
        </xforms:trigger>
        <xforms:trigger id="show-dialog-below-trigger-trigger">
            <xforms:label>Show dialog below trigger</xforms:label>
            <xxforms:show ev:event="DOMActivate" dialog="myDialog"
neighbor="show-dialog-below-trigger-trigger"/>
        </xforms:trigger>
        <!-- Displays value entered in the dialog -->
        <xhtml:p>
            <xforms:output ref="text">
                <xforms:label>Text:</xforms:label>
            </xforms:output>
        </xhtml:p>
        <xhtml:p>
            <xforms:output ref="message" id="message-output">
                <xforms:label>Message:</xforms:label>
            </xforms:output>
        </xhtml:p>

    </xhtml:body>
</xhtml:html>

-Prameela.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]

Sent: Friday, March 27, 2009 12:32 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Pop up with xform

Hi Prameela,

Can you give the link of the example.

- Kamlesh



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws