March 29, 200917 yr Hello, I have a MySpace page that I would like to embed in a frame (or div). It worked out fine before the new MySpace version (Feb 2009), but now it just redirects the entire page to the MySpace page. Here's an example: http://www.thosedamn.se With the code: <html> <head> <title>Academics</title> <link rel="icon" type="image/jpeg" href="favicon.jpg"> </head> <frameset rows = "*,57" frameborder="0" scroll="no" resizable="no"> <frame src ="http://myspace.com/thosedamnacademics" name="main" /> <frame src ="http://www.randombastards.com/top.php" scroll="no" name="top" /> </frameset> </html> It's not supposed to redirect the page to MySpace but it does anyway. Please help me out here! Thanks in advance.
March 29, 200917 yr Probably means that Myspace have put some code in their page which detects if it is being loaded in a frame, and reloads it in the whole window. They're completely within their rights to do that (it's their content and they won't want to run the risk of it appearing in a frame in the middle of a porn site, for example), and there's very little you can do about it. It's only surprising they took so long to put the code in.
March 30, 200917 yr Author Probably means that Myspace have put some code in their page which detects if it is being loaded in a frame, and reloads it in the whole window. They're completely within their rights to do that (it's their content and they won't want to run the risk of it appearing in a frame in the middle of a porn site, for example), and there's very little you can do about it. It's only surprising they took so long to put the code in. That sounds reasonable. But isn't there some way, work around or anything? I'm willing to reward a solution. If it helps, I think what causes the break-out is a javascript.
March 30, 200917 yr You could use a proxy like script to strip out the js prior to loading it into the frame, but knowing how poorly coded myspace is, i wouldn't be surprised if this broke alot of functionality. I've got a few other idea's, but not sure if they'd work. I'll post them after dinner.
March 30, 200917 yr Every way I can think of is messy and horrible. And if you have the expertise to implement them I'd say you'd be smart enough to setup a CMS to do a better page.
Create an account or sign in to comment