homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Grabbing Visible Elements of Remote Pages
Is there a way?

 6:11 am on Aug 18, 2005 (gmt 0)

Hi All

I currently have a script that grabs a remotely hosted webpage (using @file()) and checks for the occurence of a certain item on that page. This works fine, except that the script also needs to check that the item is "visible" to the user. I'm guessing, short of writing the most complex CSS and JS validator ever written, that this is not possible. Am i right in this assumption?

Many thanks




 6:17 am on Aug 18, 2005 (gmt 0)

You could check the markup for the element
style="display: none;" or something, but you're right: What if they have the visibility set to none with CSS or JS? I'm not sure what you would do then, or even if there is anything you could do without writing something to check CSS files, or even more unrealistically, the JS files.

 6:41 am on Aug 18, 2005 (gmt 0)

Yes it's tricky eh. There are so many ways one could hide something.

What makes me wonder though, is that you see sites that can "grab" thumbnail gifs of remote sites. Now i believe this can be done automatically, but whether its achievable only through PC software or not i don't know.

But assuming it can be done online, by say Perl, Python or PHP, then it raised my curiosity n so much as maybe it knows what the page comprises of in order to do the thumbnail.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved