Solved

Embedding a website within a website, and having it stay there

Posted on 2009-05-11
2
643 Views
Last Modified: 2012-05-06
A previous question/solution shows how to embed one website within another.  I have a similar situation, but the previous solution doesn't work to the extent I need.

I want to offer visitors to my site the opportunity to play around with a beta website, and then I want to ask them a few questions about what they think.  I want to embed the beta site on a page and have them be able to move around all they want on the embedded site without ever leaving the original site.  Using the previously provided solution, as soon as a link is clicked on the embedded webpage, the entire browser window goes to the clicked link.  I need people to stay put in the main "window" while they are free to surf around the "inner" window.  Hopefully that makes sense.

Thanks ahead of time!

TLG
0
Comment
Question by:TheLinkerG
[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 Comments
 
LVL 12

Expert Comment

by:alien109
ID: 24356961
as long as your links aren't targeting _top or _parent you should stay in the iframe. can you show the implementation that isn't working for you?
0
 
LVL 1

Accepted Solution

by:
TheLinkerG earned 0 total points
ID: 24380564
Well, I think I've answered my own problem.  

Alien109, I was NOT targetting anything.  The IFRAME I was using looked like this:

<iframe src="http://www.espn.com" width="800" height="600"></iframe>

It looked fine at first, but as soon as I clicked a link it took over the entire window.  Since I'm going to be showing a mocked-up website that I control, I was able to fix it by modifying that code:

<iframe name="subwin" id="subwin" src="http://www.espn.com" width="800" height="600"></iframe>

In the mocked-up html, every link includes target="subwin" and that seems to work fine.  Anybody know how to fix it if I can't control the link targets?

Thanks again in advance... again...

TLG
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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