Probably the issue is that you don't wait before the Asset Picker is loaded and therefore the function populateTypePullDown
is not yet defined.
Try something like this:
$('#iframe')
.ready(function() {
var $innerIframe = $(this).contents().find('#iFrame2');
console.log($innerIframe, 'ready');
$innerIframe.get(0).contentWindow.populateTypePullDown('/vsg/ipm/SecuredOfferRepository');
})
.get(0).contentWindow.showAssetPicker();
Figured out the answer. What I did was I reached inside the main <iframe>
, and got the contentWindow of the <iframe>
inside.
$('#iframe').contents().find('#iFrame').get(0).contentWindow.performSearch();
Post a Comment for "Setting Javascript Context To Iframe In An Iframe"