Created
October 21, 2013 08:32
-
-
Save mirontoli/7080487 to your computer and use it in GitHub Desktop.
Resize IFrame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ResizeIFrame(height, width) { | |
| if (!window.parent) | |
| return; | |
| var senderId = decodeURIComponent(getQueryStringParameter("SenderId")); | |
| var message = "<Message senderId=" + senderId + " >" | |
| + "resize(" + width + "," + height + ")</Message>"; | |
| parent.postMessage(message, '*'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment