Some website don't allow you to view their website in an iframe. I would like to know what code I could use to identify this and redirect to another page in this situation.
Related
I wanted to know the url the user visited inside a iframe tag
I know it need same origin policy doesn't allows it
Is there a way to achieve this?
For eg: I have a website inside which I used ifame to show another website I wanted to know what pages of another website user visits inside iframe tag website
I have this situation:
So I want let the user navigate, from within my website, an external website, and I want to analyze the DOM of that website because I need the information within it.
I am not doing nothing to illegal, but only for work :)
The external website is designed in a way to "break out" an iframe. I tried to sandboxing the iframe, but the response received by the website has the same origin header, so I can't.
I kindly ask if someone worked with those situations and has some tips.
Example: I have to implement something on html page, or I have to implement something on webserver...I don't know.
Thanks to all!!!
I'm trying to embed a MyBB forum on the Forum page on https://www.tourettestalk.co.uk. Other than using an iframe, is there a way of embedding the forum and making it just look like content?
I prefer the approach of having, for example, the forum in another domain or address. In the link, when clicking the user would go to that domain.
And yes, to embed another site on a webpage, I only know the iframe option. Another problem that you will have with the iframe, is having little space to navigate in the forum.
I've developed some javascript code that renders an iframe on the page. Inside the frame, it loads various API's for social networking, such as facebook, twitter, linked in, etc. It's basically a tool for the website to allow users to sign in with their social network. I've also created a simple jQuery plugin that loads this iframe into a modal popup.
Here's the problem:
The main iframe is loaded on the site, but the developer also wants to use the jquery plugin on the same page. It works fine, but ALL of the javascript is being loaded a 2nd time. So basically it is a huge waste of resources, as every social networking api is being loaded twice. I was wondering if there was a way to track that the api's have already been loaded, and to stop loading them again. The 2 iframes are exactly identical.
I tried adding some properties to window.top, but this doesn't work because of cross domain limitations. The two iframes are of the same domain, but the main site is a different domain.
I was also wondering if an iframe can detect if the main window has loaded jquery, as that is being loaded again even when it's not necessary.
Any advice and suggestion would be appreciated,
Thanks!
You should not use an iframe for this. It sounds like you are creating a 'login pop-up' for users to login, say if they clicked 'comment' and were not already logged in. Just use a div, and float it absolutely above the rest of page.
I am developing a website with some links to some pages on external websites (belonging to the same company).
The client wants to add a way to easily return to the home site, i.e. something better than just using the browser's Back button, and something better than just opening the external links in a new browser window.
Seeing as I can't control the content of the external pages, I'm guessing that I will have load those external pages into a frame somewhere along the line.
So is there a way for a link to load a local page with a frameset, with the external page loaded into one of the frames? (Then we could have a "Return Home" button in the other frame.)
Or is there a better way to accomplish this? I could stretch to a bit of JavaScript if pushed...
Thanks,
Stewart.
You'll need to display the external websites in an iframe, with a link at the top (outside of the iframe) back to your site. Note that some sites employ "iframe busters" which will get rid of your iframe.
The best option is to open in a new tab - it's how people expect the web to work.