Re: [Htmlparser-user] coordinates of text rendered on browser.
Brought to you by:
derrickoswald
From: Third E. <nav...@gm...> - 2005-12-29 14:12:27
|
HTMLParser is not a browser so it is not going to be possible to get coordinates and positions of elements directly. You may have to write some addin on top of the parser where you load the output of the parser into some UI controls and then get the position. Just curious, is there some specific functionlaity you are looking for by knowing the coordinates? Naveen On 12/22/05, Gurpreet Sachdeva <gur...@gm...> wrote: > Thanks for the reply Naveen. > > >>>HTML parser will give you position if site is using absolute positioni= ng > and proper coordinates have been set in the STYLE attribute. > > How do we capture that information through HTML Parser. > Lets say if I need the coordinates of each element on http://news.bbc.co.= uk > How do I achive that? > > Thanks for your help, > Gurpreet Singh > > > On 12/22/05, Naveen Kohli <nav...@gm...> wrote: > > > > > > > > HTML parser will give you position if site is using absolute positionin= g > and proper coordinates have been set in the STYLE attribute. Otherwise, n= o > HTML parser can't give you the coordinates. > > > > > > > > Naveen > > > > > > > > ________________________________ > > > > > From: htm...@li... > [mailto:htm...@li...] On > Behalf Of Gurpreet Sachdeva > > Sent: Thursday, December 22, 2005 5:51 AM > > To: htm...@li... > > Subject: [Htmlparser-user] coordinates of text rendered on browser. > > > > > > > > > > Hi guys, > > > > I have a basic query. Do HTML Parser gives me the coordinates of text a= s > rendered on the browser? > > > > When I tried this: > > java -jar lib/htmlparser.jar http://news.bbc.co.uk A > > > > It gave something: > > > > LinkData > > -------- > > 0 Txt (55846[3258,81],55858[3258,93]): News sources > > *** END of LinkData *** > > Link to : http://www.bbc.co.uk/info/; titled : About the BBC; begins at= : > 55875; ends at : 55934, AccessKey=3Dnull > > LinkData > > -------- > > 0 Txt (55934[3259,65],55947[3259,78]): About the BBC > > *** END of LinkData *** > > Link to : > http://news.bbc.co.uk/newswatch/ukfs/hi/feedback/default.stm; > titled : Contact us; begins at : 55964; ends at : 56067, AccessKey=3Dnull > > LinkData > > -------- > > 0 Txt (56067[3260,109],56077[3260,119]): Contact us > > *** END of LinkData *** > > > > In the End... > > Does these numbers (56067[3260,109],56077[3260,119]) > refer to the coordinates? if not can I by some way get those coordinates > that are rendered in a standard browser (Mozilla/Firefox) > > > > Thanks and Regards, > > Gurpreet Singh > > > > > > > > -- > Thanks and Regards, > GSS -- Naveen K Kohli http://www.netomatix.com |