Solved

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

Posted on 2014-11-14
4
75 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET 5 Templates 2 65
SQL Exceptions 3 36
How to add <appSettings> to the webconfig file 2 20
how to handle $x_amount to payment gateway in php - stumped. 14 11
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

929 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