Tags » IFRAME

When posting form data to an iframe, be sure to put a NAME on the FRAME!

There was a Chrome update recently that broke a web form of mine.  I had the form posting to an iframe so that I could do a file upload without having to reload the whole page.   58 more words

Misc

get parent iframe element from inner page without knowing id

Parent html

<html>
	<body>
		<div>
			<iframe src="test.html" hash="r4d5f7"/>
			<iframe src="test.html" hash="8f7x97"/>
			<iframe src="test.html" hash="gg4v5e"/>
			<iframe src="test.html" hash="e54f87"/>
		</div>
	</body>
</html>

iframe html

<html>
<script>
function getHash()   {
           var ifs = window.top.document.getElementsByTagName("iframe");
           for(var i = 0, len = ifs.length; i < len; i++)  {
              var f = ifs[i];
              var fDoc = f.contentDocument || f.contentWindow.document;
              if(fDoc === document)   {
                 alert(f.getAttribute("hash"));
              }
           }
        }
</script>
	<body>
		<h1 id="goodid">good</h1>
	</body>
	<button onclick="getHash()">Click me</button>
</html>
… 54 more words
Js

Find your Contacts on LinkedIn (with a little help from iFrames)

Hands up if you are using iFrames that pass entity fields as parameters in your Mobile CRM?

My guess is, not many hands are raised right now. 383 more words

Mobile News