SecureMind Posted June 9, 2009 Share Posted June 9, 2009 I'm trying to parse an html page an output it into a list of links with there x,y corrdinates. I'm already using getLinks as described here: http://www.phpro.org/examples/Get-Links-With-DOM.html ... it works wonders, I trim the list and only return the Text Description of the link. Does anyone know how I could go about this to grabe the X,Y's coordinates of these links? Any help would be appreciated, btw: I'm trying to keep this server side, I have a not so pretty client side alternative. Thanks in advance for any help. Link to comment https://forums.phpfreaks.com/topic/161540-is-there-a-libraryfunction-for-locating-the-xy-coordinates-of-links-on-an-page/ Share on other sites More sharing options...
gijew Posted June 9, 2009 Share Posted June 9, 2009 I would imagine this wouldn't be possible without using javascript. That and the X,Y's of the links will change from user to user as their screen resolution will be different. The ONLY thing I could suggest would be to grab the HTML and CSS using PHP and do some calculations based off of the two to figure out approx. where the links are. Link to comment https://forums.phpfreaks.com/topic/161540-is-there-a-libraryfunction-for-locating-the-xy-coordinates-of-links-on-an-page/#findComment-852483 Share on other sites More sharing options...
SecureMind Posted June 9, 2009 Author Share Posted June 9, 2009 again though that gets me back to a client side solution, I really need this to run in the intermediary on the server/gateway... thanks for the suggestion though Link to comment https://forums.phpfreaks.com/topic/161540-is-there-a-libraryfunction-for-locating-the-xy-coordinates-of-links-on-an-page/#findComment-852534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.