How can I truncate a part of a websites page source code?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Leslie_Cheng
Posted On:   Monday, May 8, 2006 01:59 PM


Assume my homepage has a button and a textbox. When I press the button, the textbox would show the first 50 characters or first 10 lines of page source code of "www.google.com" (or any other web page source code). Not the entire page source code! I only want the first 50 charcters or the first 10 lines of the page source code!




Of course, I haven't got the page source code before hand, or else I can just copy and paste the page source code to the textbox...




Would you please tell me how to use ajax to do that?

About | Sitemap | Contact