Skip to content

Instantly share code, notes, and snippets.

@jbspeakr
Created September 4, 2013 12:10
Show Gist options
  • Save jbspeakr/6436104 to your computer and use it in GitHub Desktop.
Save jbspeakr/6436104 to your computer and use it in GitHub Desktop.
YUI Howto: Work with iFrames.
YUI().use("node", function (Y) {
'use strict';
var iframeId = "#masterDataFrame";
var frame = Y.one(iframeId);
var win = Y.Node.getDOMNode(frame.get('contentWindow'));
var doc = win.document;
YUI({ win: win, doc: doc }).use('node', function (innerY) {
// Do it...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment