Link to home
Start Free TrialLog in
Avatar of propractice
propractice

asked on

Able to get iframe non-local source html?

I have an idea for a web application.  I want to be able to develop a personal page and load an external page like www.google.com into a frame or iframe.  I was experimenting but began to wonder if what I wanted to do was even possible.  I was wondering if I am able to get the html source code of that external website that i loaded so that i may manipulate/parse it? I thought i heard somewhere that you are only able to get the source of webpages that are local to your site, and not externally loaded sites.

The programming languages I have at my disgretion is PHP, ASP, JavaScript, and HTML.  I could also consider using C++ or Perl.  I think this is possible with AJAX, but don't plan on learning yet another new language at the moment.  Please let me know how i can go about doing this.

Thanks in advance.

-- Jason
ASKER CERTIFIED SOLUTION
Avatar of nschafer
nschafer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of propractice
propractice

ASKER

if possible, i can also open a new window, load the external site in it, and grab the source from it, returning it to my original personal page for manipulation/parsing.

--jason
thanks nschafer, you didn't give me the answer, but you showed me how to get there.  after a while of playing with the code and such, i was able to get it working.  thanks.