# Only load a part of page source

**URL:** <https://forum.kirupa.com/t/only-load-a-part-of-page-source/301936>\
**Category:** flash\
**Created:** [December 18, 2009, 1:41am UTC](https://forum.kirupa.com/t/only-load-a-part-of-page-source/301936 "2009-12-18T01:41:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hero132](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@hero132](https://forum.kirupa.com/u/hero132)\
**Post date:** [December 18, 2009, 1:41am UTC](https://forum.kirupa.com/t/only-load-a-part-of-page-source/301936/1 "2009-12-18T01:41:10Z")

</div>

Hello all,  
I use loader to load page source of a webpage  
My code is:  
private function load\_page\_source( ):void  
{  
var addsearch:String = patent\_num\_txt. text;  
var request:URLRequest = new URLRequest(“[http://en.wikipedia .org/wiki/ System](http://en.wikipedia.org/wiki/System)”);  
loader.addEventList ener(Event. COMPLETE, handleResponse) ;  
loader.load( request);  
}

// handle  
private function handleResponse( event:Event) :void  
{  
var temp:String = loader.data;  
}

When I used hadleResponse function to handle Event butI only loaded a part of page source. Now I want to load all page source such as when we click right-mouse to firefox and select view page source. How do I code?  
Please help me!  
Thanks,
