I have a few issue with my PDF printing - can anybody help ? I am using xsl:fo to format data from my model and the issues I get are - 1 - when the PDF is returned in appears as a pop-up box with an open/save message in it instead of replacing my page with the PDF (or opening automatically in a new windows - which I prefer) 2 - when the PDF is returned the 'loading' message on the web page doesn't disappear. I saying I didn't want the loading message but I still get it 3 - on some clients I get the IE security bar. When I say allow downloads from site it refreshes the page which looses the data in my model that I want to print. I call the print using the following - <xforms:submission id="print-results" ref="instance('plan-results')" method="post" action="/mosaic/cycle-plan/southwark/print-pdf" xxforms:show-progress="false"/> And my page-flow is simply this - <page path-info="/mosaic/cycle-plan/southwark/print-pdf" view="print-pdf.xpl"/> The xpl just runs a xsl transform which generates xsl:fo I'm still using an early version 3 of OPS. Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw
Atkins Highways and Transportation
Tel: +44 (0) 1372 756407
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. P Consider the environment. Please don't print this e-mail unless you really need to. -- 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 |
Administrator
|
Hi Richard,
Let's start with the simple one: making sure the loading indicator doesn't stay. You can do this by adding xxforms:show-progress="false" to your submission. See: http://www.orbeon.com/ops/doc/reference-xforms-ng#submission-show-progress The browser will ask you to save the PDF or open it using the PDF plug-in depending on a number of factors (which browser you are using, what version, what version of Acrobat Reader is installed, and most importantly the phase of the moon!). In most cases, the only thing you can control are the headers sent to the browser. So I would find site where it works well, look at the headers sent by the server (for instance with ieHTTPHeaders - http://www.blunck.se/iehttpheaders/iehttpheaders.html) and send the same headers in my code. I have never seen the issue with the security bar you are talking about. Maybe this won't happen once the file opens in place. Otherwise a test case we can reproduce would help. Alex On 4/19/07, Shaw, Richard A <[hidden email]> wrote: > > > > I have a few issue with my PDF printing - can anybody help ? > > I am using xsl:fo to format data from my model and the issues I get are - > > 1 - when the PDF is returned in appears as a pop-up box with an open/save > message in it instead of replacing my page with the PDF (or opening > automatically in a new windows - which I prefer) > > 2 - when the PDF is returned the 'loading' message on the web page doesn't > disappear. I saying I didn't want the loading message but I still get it > > 3 - on some clients I get the IE security bar. When I say allow downloads > from site it refreshes the page which looses the data in my model that I > want to print. > > I call the print using the following - > > <xforms:submission id="print-results" ref="instance('plan-results')" > method="post" > action="/mosaic/cycle-plan/southwark/print-pdf" > xxforms:show-progress="false"/> > > And my page-flow is simply this - > > <page path-info="/mosaic/cycle-plan/southwark/print-pdf" > view="print-pdf.xpl"/> > > The xpl just runs a xsl transform which generates xsl:fo > > I'm still using an early version 3 of OPS. > > Richard Shaw > > ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ > > Richard Shaw > Technical Design Authority - Information Solutions Consultancy > Intelligent Transport Systems > > Atkins Highways and Transportation > Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW > > Tel: +44 (0) 1372 756407 > Fax: +44 (0) 1372 740055 > Mob: 07740 817586 > E-mail: [hidden email] > > www.atkinsglobal.com/its > > > > This email and any attached files are confidential and copyright protected. > If you are not the addressee, any dissemination of this communication is > strictly prohibited. Unless otherwise expressly agreed in writing, nothing > stated in this communication shall be legally binding. > > The ultimate parent company of the Atkins Group is WS Atkins plc. > Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley > Road, Epsom, Surrey KT18 5BW. > > P Consider the environment. Please don't print this e-mail unless you really > need to. > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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 |
I had the same IE security bar issue - I'm using IE 7. I believe the
problem went away when I started opening my PDF in a new window. Alessandro Vernet wrote: > Hi Richard, > > Let's start with the simple one: making sure the loading indicator > doesn't stay. You can do this by adding xxforms:show-progress="false" > to your submission. See: > > http://www.orbeon.com/ops/doc/reference-xforms-ng#submission-show-progress > > > The browser will ask you to save the PDF or open it using the PDF > plug-in depending on a number of factors (which browser you are using, > what version, what version of Acrobat Reader is installed, and most > importantly the phase of the moon!). In most cases, the only thing you > can control are the headers sent to the browser. So I would find site > where it works well, look at the headers sent by the server (for > instance with ieHTTPHeaders - > http://www.blunck.se/iehttpheaders/iehttpheaders.html) and send the > same headers in my code. > > I have never seen the issue with the security bar you are talking > about. Maybe this won't happen once the file opens in place. Otherwise > a test case we can reproduce would help. > > Alex > > On 4/19/07, Shaw, Richard A <[hidden email]> wrote: >> >> >> >> I have a few issue with my PDF printing - can anybody help ? >> >> I am using xsl:fo to format data from my model and the issues I get >> are - >> >> 1 - when the PDF is returned in appears as a pop-up box with an >> open/save >> message in it instead of replacing my page with the PDF (or opening >> automatically in a new windows - which I prefer) >> >> 2 - when the PDF is returned the 'loading' message on the web page >> doesn't >> disappear. I saying I didn't want the loading message but I still get it >> >> 3 - on some clients I get the IE security bar. When I say allow >> downloads >> from site it refreshes the page which looses the data in my model that I >> want to print. >> >> I call the print using the following - >> >> <xforms:submission id="print-results" ref="instance('plan-results')" >> method="post" >> action="/mosaic/cycle-plan/southwark/print-pdf" >> xxforms:show-progress="false"/> >> >> And my page-flow is simply this - >> >> <page path-info="/mosaic/cycle-plan/southwark/print-pdf" >> view="print-pdf.xpl"/> >> >> The xpl just runs a xsl transform which generates xsl:fo >> >> I'm still using an early version 3 of OPS. >> >> Richard Shaw >> >> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ >> >> Richard Shaw >> Technical Design Authority - Information Solutions Consultancy >> Intelligent Transport Systems >> >> Atkins Highways and Transportation >> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW >> >> Tel: +44 (0) 1372 756407 >> Fax: +44 (0) 1372 740055 >> Mob: 07740 817586 >> E-mail: [hidden email] >> >> www.atkinsglobal.com/its >> >> >> >> This email and any attached files are confidential and copyright >> protected. >> If you are not the addressee, any dissemination of this communication is >> strictly prohibited. Unless otherwise expressly agreed in writing, >> nothing >> stated in this communication shall be legally binding. >> >> The ultimate parent company of the Atkins Group is WS Atkins plc. >> Registered in England No. 1885586. Registered Office Woodcote Grove, >> Ashley >> Road, Epsom, Surrey KT18 5BW. >> >> P Consider the environment. Please don't print this e-mail unless you >> really >> need to. >> >> -- >> 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 >> >> > > > ------------------------------------------------------------------------ > > > -- > 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 > -- 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 |
Can you tell me how you opened the PDF in a new window ?
Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw Technical Design Authority - Information Solutions Consultancy Intelligent Transport Systems Atkins Highways and Transportation Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055 Mob: 07740 817586 E-mail: [hidden email] www.atkinsglobal.com/its -----Original Message----- From: Edward Priwer [mailto:[hidden email]] Sent: 20 April 2007 00:46 To: [hidden email] Subject: Re: [ops-users] PDF I had the same IE security bar issue - I'm using IE 7. I believe the problem went away when I started opening my PDF in a new window. Alessandro Vernet wrote: > Hi Richard, > > Let's start with the simple one: making sure the loading indicator > doesn't stay. You can do this by adding xxforms:show-progress="false" > to your submission. See: > > http://www.orbeon.com/ops/doc/reference-xforms-ng#submission-show-prog > ress > > > The browser will ask you to save the PDF or open it using the PDF > plug-in depending on a number of factors (which browser you are using, > what version, what version of Acrobat Reader is installed, and most > importantly the phase of the moon!). In most cases, the only thing you > can control are the headers sent to the browser. So I would find site > where it works well, look at the headers sent by the server (for > instance with ieHTTPHeaders - > http://www.blunck.se/iehttpheaders/iehttpheaders.html) and send the > same headers in my code. > > I have never seen the issue with the security bar you are talking > about. Maybe this won't happen once the file opens in place. Otherwise > a test case we can reproduce would help. > > Alex > > On 4/19/07, Shaw, Richard A <[hidden email]> wrote: >> >> >> >> I have a few issue with my PDF printing - can anybody help ? >> >> I am using xsl:fo to format data from my model and the issues I get >> are - >> >> 1 - when the PDF is returned in appears as a pop-up box with an >> open/save message in it instead of replacing my page with the PDF (or >> opening automatically in a new windows - which I prefer) >> >> 2 - when the PDF is returned the 'loading' message on the web page >> doesn't disappear. I saying I didn't want the loading message but I >> still get it >> >> 3 - on some clients I get the IE security bar. When I say allow >> downloads from site it refreshes the page which looses the data in my >> model that I want to print. >> >> I call the print using the following - >> >> <xforms:submission id="print-results" ref="instance('plan-results')" >> method="post" >> action="/mosaic/cycle-plan/southwark/print-pdf" >> xxforms:show-progress="false"/> >> >> And my page-flow is simply this - >> >> <page path-info="/mosaic/cycle-plan/southwark/print-pdf" >> view="print-pdf.xpl"/> >> >> The xpl just runs a xsl transform which generates xsl:fo >> >> I'm still using an early version 3 of OPS. >> >> Richard Shaw >> >> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ >> >> Richard Shaw >> Technical Design Authority - Information Solutions Consultancy >> Intelligent Transport Systems >> >> Atkins Highways and Transportation >> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW >> >> Tel: +44 (0) 1372 756407 >> Fax: +44 (0) 1372 740055 >> Mob: 07740 817586 >> E-mail: [hidden email] >> >> www.atkinsglobal.com/its >> >> >> >> This email and any attached files are confidential and copyright >> protected. >> If you are not the addressee, any dissemination of this communication >> is strictly prohibited. Unless otherwise expressly agreed in writing, >> nothing stated in this communication shall be legally binding. >> >> The ultimate parent company of the Atkins Group is WS Atkins plc. >> Registered in England No. 1885586. Registered Office Woodcote Grove, >> Ashley Road, Epsom, Surrey KT18 5BW. >> >> P Consider the environment. Please don't print this e-mail unless you >> really need to. >> >> -- >> 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 >> >> > > > ---------------------------------------------------------------------- > -- > > > -- > 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 > This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?6875772) -- 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 |
Administrator
|
Richard,
On 4/20/07, Shaw, Richard A <[hidden email]> wrote: > Can you tell me how you opened the PDF in a new window ? You can use the xxforms:target="_blank" attribute on <xforms:submission> and <xforms:load>. I also noticed that documentation for this feature was missing, so I added a section about this to the XForms reference. Alex -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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 |
xxforms:target didn't work for me so instead I used:
<xforms:trigger appearance="minimal" xhtml:onclick="document.forms[0].target = '_blank';"> <xforms:label><img src="apps/pmp/images/pdf.png" alt="View PDF"/> View PDF</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="view-pdf-submission" /> </xforms:action> <xxforms:script ev:event="DOMActivate"> //make current window target document.forms[0].target = ''; </xxforms:script> </xforms:trigger> Alessandro Vernet wrote: > Richard, > > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: >> Can you tell me how you opened the PDF in a new window ? > > You can use the xxforms:target="_blank" attribute on > <xforms:submission> and <xforms:load>. > > I also noticed that documentation for this feature was missing, so I > added a section about this to the XForms reference. > > Alex > ------------------------------------------------------------------------ > > > -- > 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 > -- 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 |
Administrator
|
Hi Edward,
xxforms:target should work. If you have a case where it doesn't work for you, it would be helpful if you could send a test case to this list. Alex On 4/22/07, Edward Priwer <[hidden email]> wrote: > xxforms:target didn't work for me so instead I used: > > <xforms:trigger appearance="minimal" > xhtml:onclick="document.forms[0].target = '_blank';"> > <xforms:label><img src="apps/pmp/images/pdf.png" alt="View PDF"/> View > PDF</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:send submission="view-pdf-submission" /> > </xforms:action> > <xxforms:script ev:event="DOMActivate"> > //make current window target > document.forms[0].target = ''; > </xxforms:script> > </xforms:trigger> > > > Alessandro Vernet wrote: > > Richard, > > > > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: > >> Can you tell me how you opened the PDF in a new window ? > > > > You can use the xxforms:target="_blank" attribute on > > <xforms:submission> and <xforms:load>. > > > > I also noticed that documentation for this feature was missing, so I > > added a section about this to the XForms reference. > > > > Alex > > ------------------------------------------------------------------------ > > > > > > -- > > 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 > > > > > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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 Alex,
I don't have time to make a full test case right now, but I'll paste some code in here now and if you can't see a glaringly obvious error I'll post a full test case later... <-- page-flow.xml --> <page path-info="/myapp/evaluation-form/pdf" model="evaluation-form/service-get-pdf.xpl"/> <!-- the trigger --> <xforms:trigger appearance="minimal"> <xforms:label><img src="apps/myapp/images/pdf.png" alt="View PDF"/> View PDF</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="view-pdf-submission" /> </xforms:action> </xforms:trigger> <!-- the submission --> <xforms:submission id="view-pdf-submission" ref="instance('review-instance')" method="post" action="/myapp/evaluation-form/pdf" xxforms:show-progress="false" xxforms:target="_blank"> <xforms:message ev:event="xforms-submit-error" level="modal">Operation failed.</xforms:message> </xforms:submission> The above opens the PDF up in the same window. Ed Alessandro Vernet wrote: > Hi Edward, > > xxforms:target should work. If you have a case where it doesn't work > for you, it would be helpful if you could send a test case to this > list. > > Alex > > On 4/22/07, Edward Priwer <[hidden email]> wrote: >> xxforms:target didn't work for me so instead I used: >> >> <xforms:trigger appearance="minimal" >> xhtml:onclick="document.forms[0].target = '_blank';"> >> <xforms:label><img src="apps/pmp/images/pdf.png" alt="View PDF"/> View >> PDF</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:send submission="view-pdf-submission" /> >> </xforms:action> >> <xxforms:script ev:event="DOMActivate"> >> //make current window target >> document.forms[0].target = ''; >> </xxforms:script> >> </xforms:trigger> >> >> >> Alessandro Vernet wrote: >> > Richard, >> > >> > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: >> >> Can you tell me how you opened the PDF in a new window ? >> > >> > You can use the xxforms:target="_blank" attribute on >> > <xforms:submission> and <xforms:load>. >> > >> > I also noticed that documentation for this feature was missing, so I >> > added a section about this to the XForms reference. >> > >> > Alex >> > >> ------------------------------------------------------------------------ >> > >> > >> > -- >> > 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 >> > >> >> >> >> -- >> 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 >> >> > > > ------------------------------------------------------------------------ > > > -- > 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 > -- 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 |
Administrator
|
Hi Ed,
Everything seems to be good in this code. I have never tried this exact combination though (going to a PDF, with both xxforms:show-progress="false" and xxforms:show-progress="false"), so if you have one day some time to create a test case, please do send it here; I will be interested in having a look at it. Alex On 4/23/07, Edward Priwer <[hidden email]> wrote: > Hi Alex, > > I don't have time to make a full test case right now, but I'll paste > some code in here now and if you can't see a glaringly obvious error > I'll post a full test case later... > > <-- page-flow.xml --> > <page path-info="/myapp/evaluation-form/pdf" > model="evaluation-form/service-get-pdf.xpl"/> > > <!-- the trigger --> > <xforms:trigger appearance="minimal"> > <xforms:label><img src="apps/myapp/images/pdf.png" alt="View PDF"/> > View PDF</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:send submission="view-pdf-submission" /> > </xforms:action> > </xforms:trigger> > > <!-- the submission --> > <xforms:submission id="view-pdf-submission" > ref="instance('review-instance')" method="post" > action="/myapp/evaluation-form/pdf" xxforms:show-progress="false" > xxforms:target="_blank"> > <xforms:message ev:event="xforms-submit-error" > level="modal">Operation failed.</xforms:message> > </xforms:submission> > > The above opens the PDF up in the same window. > > Ed > > > Alessandro Vernet wrote: > > Hi Edward, > > > > xxforms:target should work. If you have a case where it doesn't work > > for you, it would be helpful if you could send a test case to this > > list. > > > > Alex > > > > On 4/22/07, Edward Priwer <[hidden email]> wrote: > >> xxforms:target didn't work for me so instead I used: > >> > >> <xforms:trigger appearance="minimal" > >> xhtml:onclick="document.forms[0].target = '_blank';"> > >> <xforms:label><img src="apps/pmp/images/pdf.png" alt="View PDF"/> View > >> PDF</xforms:label> > >> <xforms:action ev:event="DOMActivate"> > >> <xforms:send submission="view-pdf-submission" /> > >> </xforms:action> > >> <xxforms:script ev:event="DOMActivate"> > >> //make current window target > >> document.forms[0].target = ''; > >> </xxforms:script> > >> </xforms:trigger> > >> > >> > >> Alessandro Vernet wrote: > >> > Richard, > >> > > >> > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: > >> >> Can you tell me how you opened the PDF in a new window ? > >> > > >> > You can use the xxforms:target="_blank" attribute on > >> > <xforms:submission> and <xforms:load>. > >> > > >> > I also noticed that documentation for this feature was missing, so I > >> > added a section about this to the XForms reference. > >> > > >> > Alex > >> > > >> ------------------------------------------------------------------------ > >> > > >> > > >> > -- > >> > 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 > >> > > >> > >> > >> > >> -- > >> 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 > >> > >> > > > > > > ------------------------------------------------------------------------ > > > > > > -- > > 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 > > > > > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- 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 |
Alessandro Vernet a écrit :
> Hi Ed, > > Everything seems to be good in this code. I have never tried this > exact combination though (going to a PDF, with both > xxforms:show-progress="false" and xxforms:show-progress="false"), so > if you have one day some time to create a test case, please do send it > here; I will be interested in having a look at it. > > Alex > > On 4/23/07, Edward Priwer <[hidden email]> wrote: >> Hi Alex, >> >> I don't have time to make a full test case right now, but I'll paste >> some code in here now and if you can't see a glaringly obvious error >> I'll post a full test case later... >> >> <-- page-flow.xml --> >> <page path-info="/myapp/evaluation-form/pdf" >> model="evaluation-form/service-get-pdf.xpl"/> >> >> <!-- the trigger --> >> <xforms:trigger appearance="minimal"> >> <xforms:label><img src="apps/myapp/images/pdf.png" alt="View PDF"/> >> View PDF</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:send submission="view-pdf-submission" /> >> </xforms:action> >> </xforms:trigger> >> >> <!-- the submission --> >> <xforms:submission id="view-pdf-submission" >> ref="instance('review-instance')" method="post" >> action="/myapp/evaluation-form/pdf" xxforms:show-progress="false" >> xxforms:target="_blank"> >> <xforms:message ev:event="xforms-submit-error" >> level="modal">Operation failed.</xforms:message> >> </xforms:submission> >> >> The above opens the PDF up in the same window. >> >> Ed >> >> >> Alessandro Vernet wrote: >> > Hi Edward, >> > >> > xxforms:target should work. If you have a case where it doesn't work >> > for you, it would be helpful if you could send a test case to this >> > list. >> > >> > Alex >> > >> > On 4/22/07, Edward Priwer <[hidden email]> wrote: >> >> xxforms:target didn't work for me so instead I used: >> >> >> >> <xforms:trigger appearance="minimal" >> >> xhtml:onclick="document.forms[0].target = '_blank';"> >> >> <xforms:label><img src="apps/pmp/images/pdf.png" alt="View >> PDF"/> View >> >> PDF</xforms:label> >> >> <xforms:action ev:event="DOMActivate"> >> >> <xforms:send submission="view-pdf-submission" /> >> >> </xforms:action> >> >> <xxforms:script ev:event="DOMActivate"> >> >> //make current window target >> >> document.forms[0].target = ''; >> >> </xxforms:script> >> >> </xforms:trigger> >> >> >> >> >> >> Alessandro Vernet wrote: >> >> > Richard, >> >> > >> >> > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: >> >> >> Can you tell me how you opened the PDF in a new window ? >> >> > >> >> > You can use the xxforms:target="_blank" attribute on >> >> > <xforms:submission> and <xforms:load>. >> >> > >> >> > I also noticed that documentation for this feature was missing, >> so I >> >> > added a section about this to the XForms reference. >> >> > >> >> > Alex >> >> > I have the same problem with a similar code. It seems that the xxforms:target="_blank" woks with IE but not with Firefox 2.0.0.3. HTH, Marc -- 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 |
Administrator
|
Marc,
xxforms:target doesn't actually work on xforms:submission yet. It is only implemented on xforms:load. Which are you using? -Erik marc wrote: > Alessandro Vernet a écrit : >> Hi Ed, >> >> Everything seems to be good in this code. I have never tried this >> exact combination though (going to a PDF, with both >> xxforms:show-progress="false" and xxforms:show-progress="false"), so >> if you have one day some time to create a test case, please do send it >> here; I will be interested in having a look at it. >> >> Alex >> >> On 4/23/07, Edward Priwer <[hidden email]> wrote: >>> Hi Alex, >>> >>> I don't have time to make a full test case right now, but I'll paste >>> some code in here now and if you can't see a glaringly obvious error >>> I'll post a full test case later... >>> >>> <-- page-flow.xml --> >>> <page path-info="/myapp/evaluation-form/pdf" >>> model="evaluation-form/service-get-pdf.xpl"/> >>> >>> <!-- the trigger --> >>> <xforms:trigger appearance="minimal"> >>> <xforms:label><img src="apps/myapp/images/pdf.png" alt="View PDF"/> >>> View PDF</xforms:label> >>> <xforms:action ev:event="DOMActivate"> >>> <xforms:send submission="view-pdf-submission" /> >>> </xforms:action> >>> </xforms:trigger> >>> >>> <!-- the submission --> >>> <xforms:submission id="view-pdf-submission" >>> ref="instance('review-instance')" method="post" >>> action="/myapp/evaluation-form/pdf" xxforms:show-progress="false" >>> xxforms:target="_blank"> >>> <xforms:message ev:event="xforms-submit-error" >>> level="modal">Operation failed.</xforms:message> >>> </xforms:submission> >>> >>> The above opens the PDF up in the same window. >>> >>> Ed >>> >>> >>> Alessandro Vernet wrote: >>> > Hi Edward, >>> > >>> > xxforms:target should work. If you have a case where it doesn't work >>> > for you, it would be helpful if you could send a test case to this >>> > list. >>> > >>> > Alex >>> > >>> > On 4/22/07, Edward Priwer <[hidden email]> wrote: >>> >> xxforms:target didn't work for me so instead I used: >>> >> >>> >> <xforms:trigger appearance="minimal" >>> >> xhtml:onclick="document.forms[0].target = '_blank';"> >>> >> <xforms:label><img src="apps/pmp/images/pdf.png" alt="View >>> PDF"/> View >>> >> PDF</xforms:label> >>> >> <xforms:action ev:event="DOMActivate"> >>> >> <xforms:send submission="view-pdf-submission" /> >>> >> </xforms:action> >>> >> <xxforms:script ev:event="DOMActivate"> >>> >> //make current window target >>> >> document.forms[0].target = ''; >>> >> </xxforms:script> >>> >> </xforms:trigger> >>> >> >>> >> >>> >> Alessandro Vernet wrote: >>> >> > Richard, >>> >> > >>> >> > On 4/20/07, Shaw, Richard A <[hidden email]> wrote: >>> >> >> Can you tell me how you opened the PDF in a new window ? >>> >> > >>> >> > You can use the xxforms:target="_blank" attribute on >>> >> > <xforms:submission> and <xforms:load>. >>> >> > >>> >> > I also noticed that documentation for this feature was missing, >>> so I >>> >> > added a section about this to the XForms reference. >>> >> > >>> >> > Alex >>> >> > > Hi Alex, > > I have the same problem with a similar code. > It seems that the xxforms:target="_blank" woks with IE but not with > Firefox 2.0.0.3. > > HTH, > > Marc > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Erik,
Ok, as Alex said that it worked in both actions, I give it a try. Thank you for this answear. Marc Erik Bruchez a écrit : > Marc, > > xxforms:target doesn't actually work on xforms:submission yet. It is > only implemented on xforms:load. Which are you using? > > -Erik > -- 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 |