It seems like the xxforms:target attribute works on hte xforms:load element but
not on xforms:submission. Is this true or am I making a mistake? If it is true, is there a workaround? Below is a file that can be run in the sandbox to demonstrate this. Thanks in advanced for any help or comment. <?xml version="1.0" encoding="utf-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <head> <title>xxforms:target demo</title> <xforms:model xmlns=""> <xforms:instance><root><q/></root></xforms:instance> <xforms:submission id="go" method="get" action="http://www.google.com/search" xxforms:target="iframe"/> </xforms:model> </head> <body> <p>Issue: does xxforms:target work for xforms:load but not for xforms:submission?</p> <xforms:input ref="q"/> <xforms:submit submission="go"><xforms:label>Google search</xforms:label></xforms:submit> <xforms:trigger> <xforms:label>Fill frame with Y!</xforms:label> <xforms:load xxforms:target="iframe" ev:event="DOMActivate" resource="http://www.yahoo.com" show="replace"/> </xforms:trigger> <div> <div style="margin-top:20px">This is where results are suppost to be shown. Works for "Fill frame with Y!" (xxforms:target on load) but not for "Google search" (xxforms:target on submission)</div> <object name="iframe" type="text/html" data="http://www.w3.org/" style="height:400px;width:600px;border:1px solid #000"/> </div> </body> </html> -- 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 |
Administrator
|
Are you using a nightly build, or 3.6? xxforms:target may be post-3.6.
-Erik On Jul 8, 2008, at 6:56 AM, [hidden email] wrote: > It seems like the xxforms:target attribute works on hte xforms:load > element but > not on xforms:submission. Is this true or am I making a mistake? If > it is true, > is there a workaround? Below is a file that can be run in the > sandbox to > demonstrate this. Thanks in advanced for any help or comment. > > <?xml version="1.0" encoding="utf-8"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events"> > <head> > <title>xxforms:target demo</title> > <xforms:model xmlns=""> > <xforms:instance><root><q/></root></xforms:instance> > <xforms:submission id="go" method="get" > action="http://www.google.com/search" xxforms:target="iframe"/> > </xforms:model> > </head> > <body> > <p>Issue: does xxforms:target work for xforms:load but not for > xforms:submission?</p> > <xforms:input ref="q"/> > <xforms:submit submission="go"><xforms:label>Google > search</xforms:label></xforms:submit> > <xforms:trigger> > <xforms:label>Fill frame with Y!</xforms:label> > <xforms:load xxforms:target="iframe" ev:event="DOMActivate" > resource="http://www.yahoo.com" show="replace"/> > </xforms:trigger> > <div> > <div style="margin-top:20px">This is where results are > suppost to be shown. Works for "Fill frame with Y!" (xxforms:target > on load) > but not for "Google search" (xxforms:target on submission)</div> > <object name="iframe" type="text/html" > data="http://www.w3.org/" style="height:400px;width:600px;border:1px > solid > #000"/> > </div> > </body> > </html> > > -- > 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I used a nightly build (2008-06-16) and the sandbox on the Orbeon server. Neither works.
I just noticed in the comment in the sandbox samples/action-load-target.xhtml example that xxforms:target on xforms:trigger is not supported yet. I can imagine that it also does not work for xforms:submission because it is very similar, but it does not explicitely say so. This issue is not mentioned in the changes of 3.7. From all this, I get the impression that xxforms:tartget still only works on xforms:load but not on xforms:trigger or xforms:submission.
|
Administrator
|
It is supposed to be implemented, but there may be a bug preventing it
to work with method="get". The way we implement an "optimized" get is by sending the client a redirect. This won't work with a target as there is no way of specifying a target during a redirect (although there used to be an HTTP header in the old days of Netscape), so we must disable optimized gets in that case. I will commit that change. However, doing so will cause a server-side request to be made. I am not sure if there is a better way of handling targets on the client. Can one create a DOM element like <a href="foobar" target="_blank"/> and activate that anchor? -Erik On Jul 23, 2008, at 1:10 AM, Egbert Gramsbergen wrote: > > I used a nightly build (2008-06-16) and the sandbox on the Orbeon > server. > Neither works. > I just noticed in the comment in the sandbox > samples/action-load-target.xhtml example that xxforms:target on > xforms:trigger is not supported yet. I can imagine that it also does > not > work for xforms:submission because it is very similar, but it does not > explicitely say so. This issue is not mentioned in the changes of > 3.7. From > all this, I get the impression that xxforms:tartget still only works > on > xforms:load but not on xforms:trigger or xforms:submission. > > > Erik Bruchez wrote: >> >> Are you using a nightly build, or 3.6? xxforms:target may be >> post-3.6. >> >> -Erik >> >> On Jul 8, 2008, at 6:56 AM, [hidden email] wrote: >> >>> It seems like the xxforms:target attribute works on hte xforms:load >>> element but >>> not on xforms:submission. Is this true or am I making a mistake? If >>> it is true, >>> is there a workaround? Below is a file that can be run in the >>> sandbox to >>> demonstrate this. Thanks in advanced for any help or comment. >>> >>> <?xml version="1.0" encoding="utf-8"?> >>> <html xmlns="http://www.w3.org/1999/xhtml" >>> xmlns:xforms="http://www.w3.org/2002/xforms" >>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >>> xmlns:ev="http://www.w3.org/2001/xml-events"> >>> <head> >>> <title>xxforms:target demo</title> >>> <xforms:model xmlns=""> >>> <xforms:instance><root><q/></root></xforms:instance> >>> <xforms:submission id="go" method="get" >>> action="http://www.google.com/search" xxforms:target="iframe"/> >>> </xforms:model> >>> </head> >>> <body> >>> <p>Issue: does xxforms:target work for xforms:load but not for >>> xforms:submission?</p> >>> <xforms:input ref="q"/> >>> <xforms:submit submission="go"><xforms:label>Google >>> search</xforms:label></xforms:submit> >>> <xforms:trigger> >>> <xforms:label>Fill frame with Y!</xforms:label> >>> <xforms:load xxforms:target="iframe" ev:event="DOMActivate" >>> resource="http://www.yahoo.com" show="replace"/> >>> </xforms:trigger> >>> <div> >>> <div style="margin-top:20px">This is where results are >>> suppost to be shown. Works for "Fill frame with Y!" (xxforms:target >>> on load) >>> but not for "Google search" (xxforms:target on submission)</div> >>> data="http://www.w3.org/" style="height:400px;width: >>> 600px;border:1px >>> solid >>> #000"/> >>> </div> >>> </body> >>> </html> >>> >>> -- >>> 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 >> >> -- >> 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 >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > -- > View this message in context: http://www.nabble.com/xxforms%3Atarget-not-working-on-submission.-tp18340553p18605925.html > Sent from the ObjectWeb 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |