Solved

How do you display Hidden Text on Webpage before creating Thumbnail of page

Posted on 2014-11-14
4
73 Views
Last Modified: 2014-11-28
I am trying to get thumbnails of webpages to show content of the page.

I have the code to obtain string of HTML and use that to create jpg thumbnail.

The problem is on the pages are tabs, links with "show more.." to JavaScript which then displays more text.

How can I determine in .net c# which text is hidden in this way?

and secondly how do I change page in .net c# before thumbnail generation to display the hidden text behind tabs and links on page?

Thanks
0
Comment
Question by:stephenwilde
  • 2
  • 2
4 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 40442305
This requires a LOT OF CODING on your part. You have to deconstruct the current working code, and reprogram it to include what you want. You will have to insert a routine that picks up the css code and interpret it to see if it has the hide/show elements.
0
 

Author Comment

by:stephenwilde
ID: 40442317
Thanks I thought it may be very bespoke and heavy code.

If I can in code identify there is a tab with text behind it that was not showing

Is there some code in .net that I can sent in the HTML request that is acts like a "click tab" on the identified tab and then the text would show on the returned string?

Effectively like if I did it manually the HTML page would change.
0
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 40442327
No, the code are put in the .Net libraries as it is (interpret and show webpage). Everything as exotic as what you like, needs to be programmed by yourself (and you maybe you have to code stuff that's already in the library, but because it's slightly diifferent, you have to start from scratch)
0
 

Author Closing Comment

by:stephenwilde
ID: 40470779
Thanks for the honest answer.
It is going to be a lot of code!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now