a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by insomniasexx
insomniasexx  ·  3645 days ago  ·  link  ·    ·  parent  ·  post: MediaCrush: open-source site for hosting images/audio/video

delta - your explanation wasn't too bad. It looks like you've managed to do things you shouldn't do inside the iFrame. This is fairly common when there are links inside of an iFrame.

SirCmpwn, it's on this page: https://mediacru.sh/about - click direct download link within the right iFrame. It allows you to load the entire MediaCrush site again in the iFrame.

I opened an iFrame in an iFrame in an iFrame in an iFrame. Hehe

Since you (luckily) have access to the content the iFrame is loading, I would add a target="_top" to the links. This will open the link at the top level of all defined framesets. I've never used _top (only _blank) but this seems like what it was meant to be used for. Hypothetically, if the "direct download" link is in the main body, it'll open in that tab still. If it isn't, it'll open in the parent. Let me know how it works out.





SirCmpwn  ·  3644 days ago  ·  link  ·  

Got this fixed, thanks for the detailed explanation.

SirCmpwn  ·  3645 days ago  ·  link  ·  

Thanks for the tip! That does appear to be the issue, I'll look into it.