:: Forum >>

Passing data from parent window to child window

How do i pass data from parent window to child window via javascript?
thanx & regards
Pushpa
Pushpa
Tuesday, June 28, 2005
One way is to do this using a URL string. I hope more people respond to this post giving additional ways.

obj.setAction("dblClickAction", function(src){
var row = src.getRowProperty("index");
var count = this.getColumnProperty("count");
var column, result = [];
for (column = 0; column < count; column++)
{result.push(this.getDataProperty("text", row, column)); }
var ID = result[0];
window.open("gotoPage.php?action=selectRow&ID="+ID,null,"height=480,width=640,status=yes,toolbar=no,menubar=no,location=no");
});

First the array is pushed onto the stack...each element. Then the element "0" of array "result" is stored in variable "ID." Then simply concatenate the variable with the URL string.
TragicRock
Tuesday, June 28, 2005

This topic is archived.


Back to support forum

Forum search