Click to See Complete Forum and Search --> : How can I capture the output of a webpage?


kangkan
January 17th, 2005, 07:39 AM
I want to capture the text output from any webpage (asp or html whatever). I want to capture it to a variable and not to show it. I am not going to use iframe etc. as well.

Is there any way to do this?

Regards,

Kangkan

khp
January 17th, 2005, 11:06 AM
Depends where you are trying ot do it. AFAIK it can't be done in javascript (at least not in the most general case).

kangkan
January 18th, 2005, 12:05 AM
I want tu use the text output to be stored in a variable for some use. And I am goung to use ASP for that. Can it be possible? The use might be say showing contents of the page in a different page but not effecting the flow anywhere.


Regards,

Kangkan

khp
January 18th, 2005, 06:28 AM
I want tu use the text output to be stored in a variable for some use. And I am goung to use ASP for that. Can it be possible?

Yes, I'am not much of an ASP guru but this page (http://www.asp101.com/samples/viewasp.asp?file=http%2Easp) seem to illustrate how to do what you want.