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
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,