|
|
|
ช่วยด้วยครับ ส่งค่าจาก popup ใช้ opener มา tabpanel ไม่ได้ |
|
|
|
|
|
|
|
help me plz~
Problems
1. POPUP PAGE OPENER Script Error
2. missing the TabPanel(After Submit)
MainPanel.js
Ext.extend(MainPanel, Ext.TabPanel, {
openTab : function(record){
Object_Id = Ext.getCmp('topic-grid').getSelectionModel().getSelections()[0].get('Object_Id');
path = 'docupdate.jsp?Object_Id='+Object_Id;
tab = new Ext.Panel({
id:'modify',
autoLoad: {url: path, scripts: true, scope: this},
});
this.add(tab);
}
this.setActiveTab(tab);
}
docupdate.jsp(Into the TabPanel)
<script language="JavaScript">
function click_ok(){
openUrl = "updateselect.jsp?location=UPDATE&docID="+pg.Object_Id.value;
com_openBrWindowCenter(openUrl,"popup_updateSelect",700,450,"scrollbars=yes");
}
function submit_ok(){
document.doc_update.submit();}
</script>
<body>
<form name="doc_update">
<input type="hidden" name="workType">
<a href="javascript:click_ok()">
<img src="../../img/button/complete.gif" width="70" height="20" border="0" hspace="1"></a>
</form>
</body>
updateselect.jsp(POPUP PAGE)
<script language="JavaScript">
function click_ok()
{
opener.document.doc_update.workType.value = "CHECKIN";
opener.document.doc_update.submit_ok();
self.close();
}
</script>
<body>
<a href="javascript:click_ok();"><img src="../../img/button/confirm.gif" width="49" height="20" border="0" hspace="1"></a>
</body>
Tag : - - - -
|
|
|
|
|
|
Date :
2010-06-17 11:30:58 |
By :
bermphp |
View :
1182 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อยากรู้เหมือนกัน
|
|
|
|
|
Date :
2010-06-18 10:53:29 |
By :
ยุทธสุดหล่อ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ไม่มีใครพอจะช่วยผมมได้หรอครับ
|
|
|
|
|
Date :
2010-06-18 15:52:57 |
By :
bermphp |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|