Location.href when double clicking on a row?
Hi,
This project is amazing but the code is difficult to understand because there are no comments :)
I wonder if it's possible to do a "document.location.href" when clicking on a row in the table ?
-I've updated this line :
obj.setAction("click", function(src){document.location.href = src.getProperty("item/text")});
-Added 1 column :
["MSFT","Microsoft Corporation", "314,571.156", "32,187.000", "55000","www.microsoft.com"],
.... but the link is modified if you click in different column of the same row (item/text function).
I've also tried to :
- 1 click to highlight a row
- 1 doubleclick redirect to selected row (ie http://www.microsoft.com)
... but I've got a javascript error message when I change obj.setEvent("onclick",function(){this.action("click")})
TO
obj.setEvent("onDblclick",function(){this.action("click")})
You've done a great job! Keep it up!
Cheers,
Alex.
This project is amazing but the code is difficult to understand because there are no comments :)
I wonder if it's possible to do a "document.location.href" when clicking on a row in the table ?
-I've updated this line :
obj.setAction("click", function(src){document.location.href = src.getProperty("item/text")});
-Added 1 column :
["MSFT","Microsoft Corporation", "314,571.156", "32,187.000", "55000","www.microsoft.com"],
.... but the link is modified if you click in different column of the same row (item/text function).
I've also tried to :
- 1 click to highlight a row
- 1 doubleclick redirect to selected row (ie http://www.microsoft.com)
... but I've got a javascript error message when I change obj.setEvent("onclick",function(){this.action("click")})
TO
obj.setEvent("onDblclick",function(){this.action("click")})
You've done a great job! Keep it up!
Cheers,
Alex.
October 31,