This is a Javascript solution to get the position of an Element, by retrieving it with its ID.
It doesn't really answer my question, because the element whose position i want has no ID.
One could say "use getElementsByTagName, then!" .
It wouldn't do either : i don't want to have to search my element with Javascript tools.
I have ALREADY found the element i'm interested in with HTML::Tree, and want to get it's position.
I could do with Javascript tools if there's no Perl module that gets it for me, but then i'd need to tell Javascript who my element is. I don't know how to do this.
Thanks for very fast answer, though =o)
| [reply] |
| [reply] |
That's an important point and i didn't know it, thank you Corion.
Would it then be possible for me to pass my HTML::Element to Javascript? Does it make any sense?
My aim being : finding the element with HTML::Tree, and then retrieving its position with Javascript.
| [reply] |