Posted by
Tambet Matiisen on
URL: https://discuss.orbeon.com/Opening-new-window-tp3227794.html
Hi everybody!
I'm struggling with popup-blockers. Consider this simple form:
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:xforms="
http://www.w3.org/2002/xforms"
xmlns:events="
http://www.w3.org/2001/xml-events">
<head>
<title>Load test!</title>
<xforms:model>
<xforms:instance xmlns="">
<data>
<url>
http://www.eesti.ee/</url>
</data>
</xforms:instance>
</xforms:model>
</head>
<body>
<h1>Load test</h1>
<xforms:trigger>
<xforms:label>Load!</xforms:label>
<xforms:load ref="url" show="new" events:event="DOMActivate"/>
</xforms:trigger>
</body>
</html>
What happens when you press Load! button:
* Firefox opens new window as desired.
* IE displays popup warning, opens new window after you enable popups.
* Chrome doesn't do anything. After you enable popups in options it also
opens new window.
Is there a way to open new window without warning in every browser? I
understand, that this is unfortunate side-behavior of AJAX-based
architecture of Orbeon - browsers generally allow one popup per one
click, but somehow this connection between click and window.open() gets
lost, because window.open() is done as a result of AJAX call.
Now, after having written this e-mail it finally struck me - AVT-s help
me out again:
<a href="{url}" target="_blank">Link</a>
Tested, works. So this e-mail becomes sharing e-mail, instead of asking
help :).
Tambet
--
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