Hi all,
When I run my form in the Form Runner environment probably the YUI library renders a iframe in the source <iframe id="_yuiResizeMonitor" title="Text Resize Monitor" style="position: absolute; visibility: visible; width: 10em; height: 10em; top: -134px; left: -134px; border-width: 0pt;"></iframe> Because of Web Content Accessibility Guidelines I cant use iframes (beside the fact that I hate iframes anyway) Does anybody know how to make sure this iframe doesnt get rendered in my code? I also tried to remove the iframe with javascript but I cant get a reference to it the following statement returns null. document.getElementById('yuiResizeMonitor'); Anybody a idea to turn the feature of? or how I can remove it with javascript? tnx Ramon |
I figured out why the javascript removal option didnt work, that has to
do timing the iframe gets rendered by YUI javascript and simply was not there yet so for now I have a dirty piece of javascript that does the trick but I would appreciate if somebody could help me to a better solution. the fix for now function removeIframe(){ var body = document.getElementsByTagName('body')[0]; if(body.firstChild.nodeName=='IFRAME'){ body.removeChild( body.firstChild ); } } setTimeout ( 'removeIframe()', 1000 ); Regards Ramon On 05/27/2011 10:01 AM, Ramon de Beijer wrote: > Hi all, > > When I run my form in the Form Runner environment probably the YUI library > renders a iframe in the source > > <iframe id="_yuiResizeMonitor" title="Text Resize Monitor" style="position: > absolute; visibility: visible; width: 10em; height: 10em; top: -134px; left: > -134px; border-width: 0pt;"></iframe> > > Because of Web Content Accessibility Guidelines I cant use iframes (beside > the fact that I hate iframes anyway) > Does anybody know how to make sure this iframe doesnt get rendered in my > code? > > I also tried to remove the iframe with javascript but I cant get a > reference to it the following statement returns null. > document.getElementById('yuiResizeMonitor'); > > Anybody a idea to turn the feature of? or how I can remove it with > javascript? > > tnx Ramon > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-i-stop-Orbeon-YUI-rendering-an-iframe-in-the-form-tp3554635p3554635.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 |
Administrator
|
In reply to this post by Ramon de Beijer
Ramon,
This hidden iframe is created by the YUI container.js code, and there isn't really a way to disable it. The Web Content Accessibility Guidelines shouldn't be concerned with that iframe, as it isn't used as a "real iframe" that contains useful content for end users, but as an implementation trick to detect window resizes in the browser. But it might be harder to convince someone blindly enforcing a policy than to remove it, like you did ;). Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Ramon de Beijer-2
Can you elaborate further on where you are running the javascript?
|
Administrator
|
I am not sure I understand the question. -Erik
On Wed, Sep 19, 2012 at 2:31 AM, throwaway123 <[hidden email]> wrote: > Can you elaborate further on where you are running the javascript? > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-i-stop-Orbeon-YUI-rendering-an-iframe-in-the-form-tp3554635p4655753.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 |
Free forum by Nabble | Edit this page |