I used java script to open a new window(child) when user clicks on button from parent window.
On new window(child), I have text box and button, I need to get the value of the text box and pass to parent window gridview when user clicks on button, while closing the child window, I need display my value gridview of the parent window , how can I do that?
1- parent window has button, clicked child window opened
2- child window has text box and button, when button clicked, get the value of the text box and pass to parent window and close child window.
3- and display the child windows text box value to gridview in parent window.
I hope it is clear
Loading
Abhishek JainPosted Aug 28, 2013, 9:30 AM
window.open('
function SetValueInGrid(valueFromChild)
{
//Now here your grid is rendered as a table, find the table in javascript,
//find the relevant row and column and fill in the value coming in parameter
//wherever you need it
}
Now to call the parent window method on click of a button
Close
function ChildwindowClose()
{
var textboxValue = document.getElementById('
opener.SetValueInGrid(textboxValue);
window.close();
}