Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
reload grid from popup
25/11/2008
02:25
Avatar
ppl1234
Member
Members
Forum Posts: 9
Member Since:
28/10/2008
sp_UserOfflineSmall Offline

How I can reload opener from popup?

help

26/11/2008
00:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

26/11/2008
02:42
Avatar
ppl1234
Member
Members
Forum Posts: 9
Member Since:
28/10/2008
sp_UserOfflineSmall Offline

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.

27/11/2008
03:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

28/12/2008
20:06
Avatar
ppl1234
Member
Members
Forum Posts: 9
Member Since:
28/10/2008
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information