I have a page that is opened in iframe, that page has a modal/popup in it. I want to access the parent page (opened in iframe) values, in modal using jquery or javascript. any ideas how could I do that?
I have tried it using window.parent.document but it takes me to the index page, while I want to remain inside the body of page opened in iframe. And window.parent.$('#someId:checked') gives me [prevObject: r.fn.init(1)].
Related
Is this even possible?
Background
I have a page that's basically just a logo and an iframe.
I have complete control over the parent page and can use whatever tricks I want (html, javascript, php, etc.).
The page in the iframe, however, is a third party page that I have very little control over. I can use no javascript, no css, I can't even modify any links. All I can do is modify some text.
Problem
I only need the logo on the initial page. Once the user logs in or clicks to a different page, I want that new page to open in the parent window. I know about target="_top" and target="_parent", but those won't help me because I have no real access to the links in the iframe.
Question
Is there any attribute I can put on the iframe or javascript I can use in the parent page that will force new pages in the iframe to load in the parent window?
I have product detail page within fancybox iframe. When I used to add product into cart, I have to update cart notification which is in parent window of iframe so I want to reload parent window without close iframe popup.
Please help me.
I'm wondering if it is possible to open a lightbox popup and redirect the parent page at the same time.
I have an ajax script that gets html as a response, i want to open a lightbox popup to show the html but at the same time the parent windows should redirect to a specific page.
This can be done but not in the normal document.reload() way. Rather than that, you would have to ajax the parent page content, then manually append it to a container in the parent page while the light box is visible! this will not interrupt the light box, but change the content of the parent page! Will be a tricky thing to do but, achievable.
I have a page with a link that opens a new window with a div and an iframe. The user can navigate through the web that it's inside the iframe and the div shows information.
The user wants an option to go back on pages that he visited inside the iframe, so I put an image on the div to allow that option. The image has the onClick event that calls history.back() method.
The problem that I have it's that in Firefox when I try to go a page back, the iframe stills showing the page that I'm seeing but if I try in Chrome it works great, I can visit all the sections that has my page and I can go back clicking on that image.
I tried to use the browser's context menu but in Firefox does nothing.
First of all I'd like to thanks in advance for your answers on this.
Currently I'm working on a site where I have a page that contains an <iframe>.
The page within the <iframe> has the Tinybox call to open the modal popup (that I want to overlay over the parent page), but the overlay stays within the <iframe>.
Is there a way to load the overlay over the parent page? If so, how do I do it?
Use this functinality in your code
window.top
For the moment, I'll just keep the script in a separate file and include that on every page.