Forum


00:53

Moderators
30/10/2007

Hello,
Could you please be a more specific? What you try to do?
I do not understand
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:42

28/10/2008

I open popup with this code.
<a href="#" onclick="javascript:
var gr = jQuery('#csvalid').getGridParam('selrow');
if( gr == null ) alert('Please Select Row');
else
MM_openBrWindow(popup.html?co_id='+gr,
'xxx','scrollbars=yes,width=700,height=700');">
<img src="../pic/add_16.gif" width="16" height="16" border="0" />
<?php echo iconv('TIS-620','UTF-8',"เพิ่มคณะà¸à¸£à¸£à¸¡à¸à¸²à¸£"); ?></a>
And popup.html code
<body>
<a href="#" id="redata">
<img src="../pic/srch_16.gif" width="16" height="16" border="0"/>
<?php echo iconv('TIS-620','UTF-8',"Reload"); ?></a>
<script language="javascript">
$("#redata").click(function(){
jQuery("opener#csvalid").setGridParam(
{datatype:"xml"}).trigger("reloadGrid");
});
</script>
</body>
Can I reload grid from popup?
Help.
03:07

Moderators
30/10/2007

Hello,
Where is the grid?
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
20:06

28/10/2008

Hi tony,
This is my grid
in page : A.php
<table id="list10_d" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager10_d" class="scroll" style="text-align:center;"></div>
<script language="javascript">
jQuery("#list10_d").jqGrid({
height: 100,
url:'board_JdirectorSsub.php?q=1&id=0',
datatype: "json",
colNames:['<?php echo iconv('TIS-620','UTF-8',"ชื่à¸-นามสà¸à¸¸à¸¥"); ?>','Name-Sername','<?php echo iconv('TIS-620','UTF-8',"ตำà¹à¸«à¸™à¹ˆà¸‡"); ?>','<?php echo iconv('TIS-620','UTF-8',"วันที่"); ?>'],
colModel:[
//{name:'co_id',index:'co_id', width:50, editable:false,edittype:"hidden"},
{name:'boa_Fname',index:'boa_Fname', width:200, editable:false},
{name:'boa_Fename',index:'boa_Fename', width:200, editable:false},
{name:'bpo_name',index:'bpo_name', width:120, editable: true,edittype:"select",editoptions:{value:"<?php $i =1; do { echo $row_Recordset1['bpo_id'].":".iconv('TIS-620','UTF-8',$row_Recordset1['bpo_name']); if($i!=$totalRows_Recordset1) echo ";"; $i++;}while($row_Recordset1 = mysql_fetch_assoc($Recordset1));?>"}},
{name:'bco_date',index:'bco_date', width:80, editable:true}
],
rowNum:5,
rowList:[5,10,20],
imgpath: gridimgpath,
pager: jQuery('#pager10_d'),
sortname: 'boa_Fname',
viewrecords: true,
sortorder: "asc",
multiselect: false,
shrinkToFit : false,
caption:"<?php echo iconv('TIS-620','UTF-8',"ที่à¸à¸¢à¸¹à¹ˆ"); ?>",
onRightClickRow: function(id){
if(id && id!==lastsel3){
jQuery("#sved4").attr("disabled",false);
jQuery('#list10_d').saveRow(lastsel3,null,null,{'oper':'edit'});
jQuery('#list10_d').editRow(id,true,pickdates);
lastsel3=id;
}
} ,
editurl:"board_JdirectorEsub.php?coid=0"
}).navGrid('#pager10_d',
{}, //options
{height:400,width:400,reloadAfterSubmit:false}, // edit options
{height:400,width:400,reloadAfterSubmit:false}, // add options
{reloadAfterSubmit:false}, // del options
{}
);
</script>
and I have popup windows
this is Old in javascript
<script language="javascript">
<input type="button" value="Reload Page" onClick="opener.window.location.reload()">
</script>
How I can reload only grid in parent windows
Regards
PPL.
Most Users Ever Online: 715
Currently Online:
25 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66