3.0.0

How to pass dynamic parameters to child window's URL

This is a nice project, I like it.

I use the following code (from the Forum by Alex) to open a new window by double click on the grid row. It works fine.

var row = new Active.Templates.Row;
row.setEvent("ondblclick", function(){this.action("myAction")});
obj.setTemplate("row", row);

obj.setAction("myAction", function(src)
{
window.open("my_test.php")
});

However, I cannot find a way to pass dynamic parameters to the child window URL (my_test.php?);
The dynamic parameters should be the first column data (IBM, Microsoft, Dell ...). What I want is:
When I double click 1st row, the child window URL shall be
my_test.php?IBM; and double click 2nd row, the child window URL shall be my_test.php?Microsoft ....

The first column was frozen using Alex's code (
http://www.activewidgets.com/messages/1393-7.htm)

Thanks a lot in advance
Yuming Si






December 10,
Try:
myWindow = window.open("my_test.php")
myWindow.opener = window; //the window object of the grid

and in the opened window:

this.opener.grid_data[0][0] - represents the first row first column (or the first col first row whatever)
helttoeachotherlover
December 13,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.