gwil - set some local variables to determine if custom list is needed $(function(){ if( window.parent && window.parent.KRelation && window.parent.KRelation.callBack ){ var content = $('#json_content'); window.parent.KRelation.callBack(content.text(), ''); } });