Grid in IFRAME events
I dont mean to be a pest, but this one is puzzling me. Anyones help is appreciated. Here it is:
I have the grid in a iframe. I have the row indexes set with my db's ID's from a resultset. I am trapping the double click event using:
var row = new Active.Templates.Row;
row.setEvent("ondblclick", function(){this.action("myAction")});
obj.setTemplate("row", row);
obj.setAction("myAction", function(src){window.parent.rowClick(src.getProperty("item/index"))});
On the IFRAME Parent page the rowClick function I am calling grabs the id being passed fine. If I alert 'document.URL' is this function, the parent page's url shows as expected. However, if I try to change location in the this function, The relative url is gotten from the IFRAME's content page. So I cannot use document relative url's. Why is this? Is this because the event is actually coming from the IFRAMES contents, even though the function resides in the parent page? Is there any way around this so I can use a document relative url?
Any help from anyone is appreciated. I'm stumped on how to overcome this. Hopefully I made sense in my explaination.
I have the grid in a iframe. I have the row indexes set with my db's ID's from a resultset. I am trapping the double click event using:
var row = new Active.Templates.Row;
row.setEvent("ondblclick", function(){this.action("myAction")});
obj.setTemplate("row", row);
obj.setAction("myAction", function(src){window.parent.rowClick(src.getProperty("item/index"))});
On the IFRAME Parent page the rowClick function I am calling grabs the id being passed fine. If I alert 'document.URL' is this function, the parent page's url shows as expected. However, if I try to change location in the this function, The relative url is gotten from the IFRAME's content page. So I cannot use document relative url's. Why is this? Is this because the event is actually coming from the IFRAMES contents, even though the function resides in the parent page? Is there any way around this so I can use a document relative url?
Any help from anyone is appreciated. I'm stumped on how to overcome this. Hopefully I made sense in my explaination.
Paul
January 29,