[Pro] iFrame into a responsive web? works?

Okay, the issue with the script on the inner page was that it was testing for a string property using an object accessor. The change was in the line where I test for old IE, which becomes:

    if (menu.hasOwnProperty(outerHeight)){ // old IE

I have a working example here: Outer Page and the code here: https://gist.github.com/walterdavis/0ac677fb23b4b8ccbce6

Note that the inner page has a requirement that you set the script in the head to match the ID of the menu’s parent item (item1 in this example). Unless you do that, there’s nothing for it to measure, and it probably won’t even get to the point of asking the outer page to change the iframe’s height.

If you have your developer console open, you should see any error messages when you load the page in the browser. If you don’t have that option enabled, then look in your Safari Preferences, Advanced pane, and check the “Show Develop menu” option on. Then choose Develop / Show Error Console.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at: