?
Solved

Able to get iframe non-local source html?

Posted on 2006-07-21
3
Medium Priority
?
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
nschafer earned 750 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
Suggested Courses

771 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