RE: [Htmlparser-user] coordinates of text rendered on browser.
Brought to you by:
derrickoswald
|
From: Naveen K. <nav...@gm...> - 2005-12-22 11:00:41
|
HTML parser will give you position if site is using absolute positioning and proper coordinates have been set in the STYLE attribute. Otherwise, no 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 as 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=null 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=null 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 |