We are using iframe where the page which is loading we are trying to execute a webservice.
(function(skuid){
var $ = skuid.$;
$(document.body).one(‘pageload’,function(){
var pageHeight = $(document).height();
var iFrameIdSkuid = Id;
var result = sforce.apex.execute(‘genesis.IFrameHeightStorageCtrl’,‘storeIFrameHeight’,
{
iFrameId: iFrameIdSkuid,
pageHeight: pageHeight
});
});
})(skuid);
But it’s giving error like “execute method is undefined”.
Any idea what could be the solution for this.