Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advanced source code extraction

Status
Not open for further replies.

mattscotney

Programmer
Jul 31, 2002
57
AU
Hi all,

Does anyone know how to extract a pages innerHTML with asp?

I can extract the source using the xmlHTTP or Inet objects, but I can not work out how to extract the innerHTML.

DEFINITION: InnerHTML for this question is the source code generated by the browser. It is not the regular view source.

EXAMPLE: The below code when placed in a html file and executed will display hello world on the screen. The innerHTML contains only the character, and not the ASCII numeric value.
<HTML>
<BODY>
& # 104; & # 101; & # 108; & # 108; & # 111; & # 032; & # 119; & # 111; & # 114; & # 108; & # 100;
</BODY>
</HTML>

NOTE: To make the above code work correctly make sure to remove all the spaces.

Above codes innerHTML:
<HTML>
<BODY>
hello world
</BODY>
</HTML>

How do I extract the innerHTML using only server side ASP?

Thanks,
Matt Scotney

NOTE: It is simply not a matter of converting the ASCII values to their character as there are many other items such as hex representation and javascript eval / unescape functions which also need decoding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top