I want to append / delete rows in a datagrid that is located in an iframe.
I cann access and manipulate other dom objects in that iframe but not the datagrid
var table_cc=$("#iframe").contents().find("#dg");
if (table_cc != undefined) {
console.log(table_cc);
table_cc.datagrid('appendRow',{
name: 'from socket',
code: 'inforo'
});
}
How can we solve this?