Help?!-Posting cell data to new window?
The code below works great to create a new window with a simple link, or if you want to populate a link with data from the grid but i'm also looking to post data from the grid into that new window...
What i'm looking for is a way to post a row of data when clicked on a link in the first column. I need the actual cell data itself to be posted to the area of the new window...so obviously the code below only posts celll data to the url.
Therefore i've used the code below to open a new window but I can't get the text to populate from the grid to the new window. I know I need to modify either the script code html page or something in the grid but I don't know how or where to start...i'm missing the code that populates the row data to the new window.
should i even be using "window.open" at all or can this be done simply using the grid?
is there even a way to call a blank html page and post data from the grid to it?
I'd also be open to using any other method (other than "alert") to bring up data from the grid into a new window.
Maybe a second grid below the original that i can post data to? How would I set this up?
Thank you in advance for your help.
AW rocks.
var linkTemplate = new AW.Templates.Link;
linkTemplate.setAttribute("target", "_new");
var myLinks = function(column, row){
return "www.activewidgets.com";
}
obj.setCellLink(myLinks, 0);
obj.setCellTemplate(linkTemplate, 0);
What i'm looking for is a way to post a row of data when clicked on a link in the first column. I need the actual cell data itself to be posted to the area of the new window...so obviously the code below only posts celll data to the url.
var myLinks = function(column, row){
return ("http://www.anysite.com/newwindowtext.html" + this.getCellText(0, row) + " " + this.getCellText(1, row) );
}
obj.setCellLink(myLinks, 0);
obj.setCellTemplate(linkTemplate, 0);
Therefore i've used the code below to open a new window but I can't get the text to populate from the grid to the new window. I know I need to modify either the script code html page or something in the grid but I don't know how or where to start...i'm missing the code that populates the row data to the new window.
var linkTemplate = new AW.Templates.Link;
var myLinks = function(column, row){
return " ";
}
obj.setCellLink(myLinks, 0);
obj.setCellTemplate(linkTemplate, 0);
obj.onCellClicked = function(event, column, row){
[b]window.open('propertyprofile.html','Listing Data','left=20,top=20,width=500,height=600,toolbar=0,resizable=1');
}[/b]
should i even be using "window.open" at all or can this be done simply using the grid?
is there even a way to call a blank html page and post data from the grid to it?
I'd also be open to using any other method (other than "alert") to bring up data from the grid into a new window.
Maybe a second grid below the original that i can post data to? How would I set this up?
Thank you in advance for your help.
AW rocks.
max freeman
March 14,