var table_cc=$("#iframe").contents().find("#dg"); if (table_cc != undefined) { console.log(table_cc); table_cc.datagrid('appendRow',{ name: 'from socket', code: 'inforo' }); }
function appendRow(){ $('#dg').datagrid('appendRow', { name:'from socket', code:'inforo' })}
window.frames['iframe'].appendRow();