Javascript-Popup window not return value

Posted by Macki under ASP.NET on 5/22/2013 | Points: 10 | Views : 1096 | Status : [Member] | Replies : 1
HI,

Popup Window not returning the value in gridview paging
in first page wen i select rows it returning but its not return on next paging

here code goes..
Page1.aspx
function showPopUp(row)
{
var rVal = row.parentNode.parentNode;
var arr = window.showModalDialog("");
if(arr!=null)
{
//..Code..//
var code= rVal.cells[1].getElementsByTagName("input")

if(code[0].type=='text')
{
code[0].value=arr[0];
}
//..Name..//
var name= rVal.cells[2].getElementsByTagName("input")
if(name[0].type=='text')
{
name[0].value=arr[1];
}
return true;
}
else
{
return false
}
}


Page2.aspx
 function SelectData(row)
{
var arRet=new Array();
var uval=row.parentNode.parentNode;
var code=uval.cells[1].innerHTML;
var name=uval.cells[2].innerHTML;

arRet[0]=code;
arRet[1]=name;
window.returnValue = arRet;
window.close();
}


Regards
Macki



Responses

Posted by: Macki on: 5/22/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

The above code works in firefox nut not in chrome

Regards
Macki

Macki, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response