Solved

Able to get iframe non-local source html?

Posted on 2006-07-21
3
303 Views
Last Modified: 2008-03-10
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
0
Comment
Question by:propractice
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
nschafer earned 250 total points
ID: 17156384
Hi propractice,

See the following thread.
http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21926190.html#17155324

This can show you how to do this and also points out a couple of issues you should be aware or.

Hope this helps,
Neal.
0
 

Author Comment

by:propractice
ID: 17156396
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
0
 

Author Comment

by:propractice
ID: 17156994
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.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question