X and Y coordinates of Link Button

G

Guest

I know you can do it with an ImageButton... but i'm bound by the fact that
i'm using a third party control with a link button, i'd really like to get
the X and Y coordinates of the control so that i can position a pop over div
appropriately on the click (using ajax).

Thanks!

-Justin
 
K

Kevin Spencer

It can be done using the DOM on the client-side, with JavaScript. It can be
a little tricky, as the DOM is a little different in IE and FireFox, but if
you structure your HTML correctly, you should be able to do it. It's
basically a matter of either, if the element is absolutely positioned, just
getting its position, or if it is inside another element, working your way
up the hierarchy of elements.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top