/*
* If you do not understand what the code below does, then please just use the
* following call in your own code.
*
* iFrameResize({log:true});
*
* Once you have it working, set the log option to false.
*/
iFrameResize({
log : true, // Enable console logging
enablePublicMethods : true, // Enable methods within iframe hosted page
enableInPageLinks : true,
resizedCallback : function(messageData){ // Callback fn when resize is received
$('p#callback').html(
'Frame ID: ' + messageData.iframe.id +
' Height: ' + messageData.height +
' Width: ' + messageData.width +
' Event type: ' + messageData.type
);
},
messageCallback : function(messageData){ // Callback fn when message is received
$('p#callback').html(
'Frame ID: ' + messageData.iframe.id +
' Message: ' + messageData.message
);
alert(messageData.message);
},
closedCallback : function(id){ // Callback fn when iFrame is closed
$('p#callback').html(
'IFrame (' + id +
') removed from page.'
);
}
});
NEED MORE ASSISTANCE?
Contact your Zone Retailer Training Manager or District Manager