Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...https url and I-Framehttps url and I-Frame
Previous
 
Next
New Post
6/2/2008 4:00 PM
 

I am trying to add an external https site to an I-frame on one of my pages. Once the link is clicked it goes to the site but my portal is gone. the only back to it is to use the back button. how can I keep the site completely in my I-Frame?

 

Thanks

 
New Post
6/3/2008 12:34 PM
 

If you mean "once the link is clicked" to be when a user visits your DNN page with the IFrame, then it is most likely because the target https site has javascript which runs as soon as it is loaded, causing it to do so.

If you instead mean when a link INSIDE the IFrame is clicked, that is due to ithe target https site's links being written so that they break out of a frame when clicked.

Either way, if the target site is not under your control there is nothing you can do to change this behavior.

If the target site IS under your control, first make sure there's no javascript that would cause the breakout, and then go look at its links; you should not be using target="_top" nor javascript that would change the DOM's top.location.

If you are using fairly 'plain' links and still find that pages break out of your IFrame, you can try using target="_parent" in your links.  That will not cause links to break frames, and has solved some issues involving links and (fairly unrelated) javascript onclick events for me.

I hope this helped!


Brad Montgomery
Engage Software
St. Louis, MO
314.966.4000

 
New Post
6/3/2008 1:10 PM
 

so if I want to use target="_parent"  in the I-Frame settings would I just do   http://site.com target="_parent" ?  or how would I use that?

 

Thanks

 
New Post
6/3/2008 2:07 PM
Accepted Answer 

target="_parent" is something you would add to the markup of the links on the https site itself, to keep its own links from breaking out of the frame once clicked on, like: <a target="_parent" href="https://site.com" target="_parent">Link Text</a>

(It's not anything you can set in DotNetNuke.)

If you don't have control of the target site then there's not much you can do to keep it from breaking out of frames. =/


Brad Montgomery
Engage Software
St. Louis, MO
314.966.4000

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...https url and I-Framehttps url and I-Frame


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out