Solved

Able to get iframe non-local source html?

Posted on 2006-07-21
3
302 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show confirmation alert in Jquery 14 60
add a 3rd selection to sum 7 25
replace link with jQuery 4 9
If condition on Html with Asp 11 12
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now