>>>So, does anyone here know how to make JRex give me the coordinates? Or some
>>>other solution or ideas?
[quoted text clipped - 8 lines]
> Sorry, I think I maybe was unclear. I need the coordinates of the
> anchor elements on the rendered html page, not the mouse coordinates
AFAIU, JS can navigate the page DOM and give you co-ords
of each of the page elements, as well.

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Currently accepting short and long term contracts - on Earth.
Jimi Hullegård - 21 Nov 2005 23:31 GMT
>>>>So, does anyone here know how to make JRex give me the coordinates? Or
>>>>some
[quoted text clipped - 12 lines]
> AFAIU, JS can navigate the page DOM and give you co-ords
> of each of the page elements, as well.
Thanks for the tip. I looked into that, and found a good page about that
(http://webdeveloper.com/advhtml/ " Determining Element Page Coordinates").
So now I have a javascript that gives me the information I need. But I can't
seem to figure out how to use this javascript with JRex. I have read about
the JSObject, but all I see is examples on how to call javascript functions
that are already "in" the html page. But my javascript is in a separate
js-file. How do I "insert" that file into the html page, so I then can call
my own methods on that page? I don't want to have to edit the html-page.
Regards
/Jimi
Andrew Thompson - 24 Nov 2005 13:43 GMT
...
> So now I have a javascript that gives me the information I need. But I can't
> seem to figure out how to use this javascript with JRex. I have read about
> the JSObject, but all I see is examples on how to call javascript functions
> that are already "in" the html page. But my javascript is in a separate
> js-file. How do I "insert" that file into the html page, so I then can call
> my own methods on that page? I don't want to have to edit the html-page.
You need to introduce the JS into the HTML somehow,
You can use a single line reference to the file containing
the JS, or if the tarrget oage is beyond being edited, you need
to use the frames based approach I mentioned earlier, and inport
the JS into another frame in that frameset.
[ But see the comp.lang.javasrcipt people for the details. ]

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Currently accepting short and long term contracts - on Earth.