I need to make a preview page for the instance of a xForm,
so the user can see it before submission. Have somebody ever made something like this? I can't find example that I could use as a reference. I shall appreciate any tip how this could be achieved. What I have is a form with Preview button. I also have an XSLT style sheet that I want to use for xml-> html conversion. What I'm missing is knowledge of the common practice how to open a new browser window and feed data into it. Just a sketch description might help. Thank you. -Taras -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Taras
Did you get anywhere with the previous response to this? I've pasted it in below for reference. Steve ======== -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 19 January 2006 20:57 To: [hidden email] Subject: Re: [ops-users] New window Now the issue arises if you are trying to have the new window access the instance of the previous window. Somehow, you need to pass some information between the two. One solution (unfortunately) is to use the session: store the instance from the first page into the session with a unique id, and pass that id on the URL of the new window. Not too clean. Another solution is to not use another window, but use an HTML DIV within the same window. The preview would just show the div, which can overlay the rest of the page. A solution for the future could be to enhance xforms:message to support full XHTML + XForms markup. The XForms engine would take care of opening the window or the overlay. But that's for the future. -Erik Stephen Bayliss wrote: > This behaviour is controlled client-side. > > One option is to have a link in your XHTML, which points to a URL in > your page-flow, which then makes the correct pipeline call to get the > data, eg > <a href="/path/defined/in/page/flow" target="_blank"/> > > Another option is to do it with some client-side javascript. > > -----Original Message----- > From: Taras Bahnyuk [mailto:[hidden email]] > Sent: 16 January 2006 11:11 > To: [hidden email] > Subject: [ops-users] New window > > Before submitting my form to the database I would like to have preview > of the instance data. > And I would like to open preview in a new window. > For that I use html serializer and some XSLT, but how do I open a new > window for serializer? > Shall I use page flow or there is a hidden setting like: > <p:processor name="oxf:http-serializer" target="new" />??? > > Thanks in advance. > -Taras ======== -----Original Message----- From: Taras Bahnyuk [mailto:[hidden email]] Sent: 15 March 2006 12:28 To: [hidden email] Subject: [ops-users] Preview window I need to make a preview page for the instance of a xForm, so the user can see it before submission. Have somebody ever made something like this? I can't find example that I could use as a reference. I shall appreciate any tip how this could be achieved. What I have is a form with Preview button. I also have an XSLT style sheet that I want to use for xml-> html conversion. What I'm missing is knowledge of the common practice how to open a new browser window and feed data into it. Just a sketch description might help. Thank you. -Taras -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Taras Bahnyuk
Stephen,
Thanks a lot. I have never seen this reply, must have been something related to the corporate spam filter... I'll let you know how far can I get with this. -Taras -----Original Message----- From: Stephen Bayliss [mailto:[hidden email]] Sent: woensdag 15 maart 2006 14:27 To: [hidden email] Subject: RE: [ops-users] Preview window Hi Taras Did you get anywhere with the previous response to this? I've pasted it in below for reference. Steve ======== -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 19 January 2006 20:57 To: [hidden email] Subject: Re: [ops-users] New window Now the issue arises if you are trying to have the new window access the instance of the previous window. Somehow, you need to pass some information between the two. One solution (unfortunately) is to use the session: store the instance from the first page into the session with a unique id, and pass that id on the URL of the new window. Not too clean. Another solution is to not use another window, but use an HTML DIV within the same window. The preview would just show the div, which can overlay the rest of the page. A solution for the future could be to enhance xforms:message to support full XHTML + XForms markup. The XForms engine would take care of opening the window or the overlay. But that's for the future. -Erik Stephen Bayliss wrote: > This behaviour is controlled client-side. > > One option is to have a link in your XHTML, which points to a URL in > your page-flow, which then makes the correct pipeline call to get the > data, eg > <a href="/path/defined/in/page/flow" target="_blank"/> > > Another option is to do it with some client-side javascript. > > -----Original Message----- > From: Taras Bahnyuk [mailto:[hidden email]] > Sent: 16 January 2006 11:11 > To: [hidden email] > Subject: [ops-users] New window > > Before submitting my form to the database I would like to have preview > of the instance data. > And I would like to open preview in a new window. > For that I use html serializer and some XSLT, but how do I open a new > window for serializer? > Shall I use page flow or there is a hidden setting like: > <p:processor name="oxf:http-serializer" target="new" />??? > > Thanks in advance. > -Taras ======== -----Original Message----- From: Taras Bahnyuk [mailto:[hidden email]] Sent: 15 March 2006 12:28 To: [hidden email] Subject: [ops-users] Preview window I need to make a preview page for the instance of a xForm, so the user can see it before submission. Have somebody ever made something like this? I can't find example that I could use as a reference. I shall appreciate any tip how this could be achieved. What I have is a form with Preview button. I also have an XSLT style sheet that I want to use for xml-> html conversion. What I'm missing is knowledge of the common practice how to open a new browser window and feed data into it. Just a sketch description might help. Thank you. -Taras -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |