fr:button

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

fr:button

SD
Hi All,

Is there any way to force a click on fr:button to open in a new tab/window

regards
--SD
Reply | Threaded
Open this post in threaded view
|

Re: fr:button

Alessandro  Vernet
Administrator
SD,

You can use an xxforms:target="_blank" on an <xforms:load> or <xforms:submission replace="all"> to have the new page open in a new window. So this is no something you do on the <fr:button> directly: the button triggers a submission or load, which has that target attribute. You'll find more on this at:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Specifying-an-HTML-target-window-or

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
SD
Reply | Threaded
Open this post in threaded view
|

Re: Re: fr:button

SD
Alex,

This was of great help, but why does the browser (IE and Firefox and Chrome) treat this new tab as a popup?

regards
--SD 

On Wed, May 4, 2011 at 11:06 PM, Alessandro Vernet <[hidden email]> wrote:
SD,

You can use an xxforms:target="_blank" on an <xforms:load> or
<xforms:submission replace="all"> to have the new page open in a new window.
So this is no something you do on the <fr:button> directly: the button
triggers a submission or load, which has that target attribute. You'll find
more on this at:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Specifying-an-HTML-target-window-or

Alex

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-button-tp3493897p3497560.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: fr:button

Alessandro  Vernet
Administrator
Hi SD,

This is because the action is triggered by some JavaScript code. A way around this, which obviously isn't as powerful, is to generate a "simple" link . Then, if the URL needs to be dynamic, in the href attribute, you can use an AVT (the {xpath} syntax) to access some information coming from a local instance.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet