G
Guest
This seems like it should be simple and I am pretty sure I've done similar
things a hundred times before but I sure can't seem to get it right this time.
I have a GridView with a column of text boxes. If I want to position an
image over the GridView just below, for instance, the textbox in row 4 of the
GridView. I don't care that it covers the other textboxes. I am
successfully obtaining the textbox and the image objects in client-side
javascript using document.getElementById().
I can position the image just fine. I just can't seem to get the position
of the chosen textbox relative to the screen or client area of the browser.
textBox.offsetTop = 2 // this seems to be the position relative to the cell
in the table of the rendered GridView
textBox.clientTop = 2 // this seems to be the position relative to the cell
in the table of the rendered GridView
textBox.style.pixelTop = 0
textBox.style.top = // empty
things a hundred times before but I sure can't seem to get it right this time.
I have a GridView with a column of text boxes. If I want to position an
image over the GridView just below, for instance, the textbox in row 4 of the
GridView. I don't care that it covers the other textboxes. I am
successfully obtaining the textbox and the image objects in client-side
javascript using document.getElementById().
I can position the image just fine. I just can't seem to get the position
of the chosen textbox relative to the screen or client area of the browser.
textBox.offsetTop = 2 // this seems to be the position relative to the cell
in the table of the rendered GridView
textBox.clientTop = 2 // this seems to be the position relative to the cell
in the table of the rendered GridView
textBox.style.pixelTop = 0
textBox.style.top = // empty