These days I was struggling with this problem: I needed to scroll the page (using javascript) to the embeded swf object. After some search and tests I used the following function (found here) to find the Y position of the object.
function findPosY(obj) {
var curtop = 0;
if(obj.offsetParent)
[...]
This will be a simple solution to be able to scroll to the last added row in a data grid. First of all I’ll explain what I mean and what I encountered when I needed to implement it.
The expected behavior is after adding a new row into a data grid, it should scroll to [...]