|
Hello Orbeon,
Can you tell me whether it's possible to embed JavaScript code in the form definition, so its automatically embedded in the HTML body section when the form definition is rendered to HTML.
Form definiton: ..
<xh:body> <fr:view> <fr:body> <script type="text/javascript">
function myFunction(){...}
</script> <noscript> ... </noscript>
<fr:section id="section-2-control" bind="section-2-bind"> <xf:label ref="$form-resources/section-2/label"/> <fr:grid>
After form definition is rendered to html:
<!DOCTYPE HTML> <html lang="en" id="xf-1"> ..
<body class="orbeon xforms-disable-hint-as-tooltip xforms-disable-alert-as-tooltip yui-skin-sam"> ...
<script type="text/javascript">
function myFunction(){...}
</script> <noscript> ... </noscript> </body> </html>
|