You need the famous Kangax Prototype cheat sheet. There is a very handy diagram on the PDF that will help you with this positioning issue:
http://thinkweb2.com/projects/prototype/prototype-1602-cheat-sheet/ On Apr 26, 5:56 pm, buda <www...@pochta.ru> wrote: > this gets coordinates in a page but I need to translate them to screen > > On 26 апр, 19:35, Diodeus <diod...@gmail.com> wrote: > > > I use this: ( fromhttp://www.quirksmode.org/js/findpos.html) > > > function findPos(obj) { > > //find coordinates of a DIV > > var curleft = curtop = 0; > > if (obj.offsetParent) { > > curleft = obj.offsetLeft > > curtop = obj.offsetTop > > while (obj = obj.offsetParent) { > > curleft += obj.offsetLeft > > curtop += obj.offsetTop > > } > > } > > return [curleft,curtop]; > > > } > > > myPos = findPos($('someDIV')) > > alert(myPos[0] + ", " myPos[1]) > > > On Apr 25, 7:02 am, buda <www...@pochta.ru> wrote: > > > > I have a problem with keydown event - event.screenY in the handler > > > show coordinates inside a form instead of screen so I need to have > > > absolute coordinates of an element to show popup element under an > > > element or beneath of it > > > > Help me please- Скрыть цитируемый текст - > > > - Показать цитируемый текст - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---