Hi all.
have 2 tab:
a tab --- title: "内容"$(function(){
var context = this;
var $grid = $('#article_grid');
var viewDialog;
var selectedMenuId, selectedMenuText;
$grid.datagrid({
title: '文章列表',
...
});
b tab code below:$('#art_submit').click(function(){
var tab = parent.$('#tabs').tabs('getTab', '内容'); // get selected panel
parent.$('#tabs').tabs('select', '内容');
alert(tab.find('iframe').get(0).contentWindow.document.getElementById('btn-group').innerHTML);
//alert: 文章 编辑...
alert(tab.find('iframe').get(0).contentWindow.document.getElementById('article_grid'));
// alert: [object HTMLTableElement]
tab.find('iframe').get(0).contentWindow.document.getElementById('article_grid').datagrid('reload');
//
no alert and tips:TypeError: tab.find(...).get(...).contentWindow.document.getElementById(...).datagrid is not a function}