Skip to content

Instantly share code, notes, and snippets.

@avernet
Created April 21, 2015 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avernet/33f8bffa56d9a609a189 to your computer and use it in GitHub Desktop.
Save avernet/33f8bffa56d9a609a189 to your computer and use it in GitHub Desktop.
Testing focus on focusable XBl controls
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xf:model>
<xf:instance>
<instance>gaga</instance>
</xf:instance>
</xf:model>
</xh:head>
<xh:body>
<xf:trigger>
<xf:label>Set focus</xf:label>
<xf:setfocus event="DOMActivate" control="my-xbl"/>
</xf:trigger>
<fr:tinymce ref="." id="my-xbl"/>
<!--<fr:code-mirror ref="." id="my-xbl"/>-->
<!--<fr:number ref="." id="my-xbl"/>-->
<!--<fr:currency ref="." id="my-xbl"/>-->
<!--<fr:recaptcha ref="." id="my-xbl"/>-->
<!--<fr:simple-captcha ref="." id="my-xbl"/>-->
</xh:body>
</xh:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment