parent « iframe « Javascript HTML CSS Q&A

Home
Javascript HTML CSS Q&A
1.animation
2.audio
3.background
4.browser
5.button
6.canvas
7.checkbox
8.Cookie
9.Development
10.DIV
11.dom
12.dropdown
13.editor
14.element
15.Event
16.Firefox
17.flash
18.font
19.Form
20.frame
21.hide
22.hyperlink
23.IE
24.iframe
25.image
26.innerHTML
27.json
28.layout
29.Library
30.localStorage
31.Menu
32.mobile
33.onclick
34.popup
35.Render
36.scroll
37.scrollbar
38.svg
39.tab
40.table
41.tag
42.text
43.TextArea
44.TextBox
45.validation
46.video
47.window
48.xml
Javascript HTML CSS Q&A » iframe » parent 

1. Is there any way instead of a JS hack where I can post from an iframe to another page outside the iframe?    stackoverflow.com

Is there any way instead of a JS hack where I can post from an iframe to another page outside the iframe? the iframe is posting data to a 3rd party and ...

2. Invoking javascript in iframe from parent page    stackoverflow.com

Basically, I have an iframe embedded in a page and the iframe has some javascript routines I need to invoke from the parent page. Now the opposite is quite simple as you ...

3. How to get javascript in an iframe to modify the parent document?    stackoverflow.com

So I have two documents dA and dB hosted on two different servers sA and sB respectively. Document dA has some JS which opens up an iframe src'ing document dB, with a ...

4. monitoring iframe content/status from the parent page    stackoverflow.com

What methods are available to monitor the status of IFRAME page, I know there are security limits but I hope some small notification system is still possible. My situation is that I ...

5. javascript parent question    stackoverflow.com

If I have a page with an iframe on it, then there is another iframe in that iframe, do I have to use parent.parent to reach the top frame or is ...

6. Can I change a value in parent page's JS from iframe's JS?    stackoverflow.com

I have a page with 3 iframes and this page loads a JS file that has

var stayFifty = new Boolean(false);
and a function that changes what it does based on this boolean. In ...

7. iFrame and Javascript to parent document    stackoverflow.com

I have an iFrame with an external website. I know about the same domain rule, so I am trying to invoke some javascript via the src to the parent. Currently I ...

8. Iframe Function Calling From Iframe to parent page javascript function    stackoverflow.com

I want to call a js function from iframe to a parent window

<script>

function abc()
{
    alert("sss");
}
</script>

<iframe id=myFrame>
        <a onclick="abc();" href=# >Call ...

9. separate Javascript, iframe/parent    stackoverflow.com

I have a big flaw in my idea and was wondering if anyone could help me. I have a script which I have written that runs on a page nicely. on ...

10. Possible Ways to Communicate Between iFrame and Parent Page across domains    stackoverflow.com

Please suggest possible techniques to trigger events in parent page from an iFrame. I tried out url Hashing and using window.postMessage techniques but without any success.

11. Is it possible to get the referrer of an iFrame's parent page with JavaScript in iFrame?    stackoverflow.com

Is it possible to get the referrer of an iFrame's parent page with JavaScript in iFrame? Example: Page A has an iFrame. The iFrames referrer is be page A. But is is ...

12. JavaScript history control targeted at iFrame affecting parent    stackoverflow.com

I've just noticed that my JavaScript history control targeted at a iFrame is affecting the parent. The code is:

document.getElementById('iframeid').contentWindow.history.back(-1);
document.getElementById('iframeid').contentWindow.history.forward(-1);
It works fine, until there is nothing to go back or forward in ...

13. Call javascript method defined in parent from iframe    stackoverflow.com

After some research (even at stackoverflow) I still can't figure out how to do this. parent.method() won't do the trick, nor some other solutions I've tried. Situation: I have a index.html ...

14. Call function in iframe from its parent?    stackoverflow.com

how Call function in iframe from its parent?

15. Can I authenticate an iFrame page from the parent page?    stackoverflow.com

I have a simple HTML page that rotates through several status pages that I display on several tv's around campus. I regularly update the page and the links. Many times the ...

16. Does JavaScript prototype works between parent/iframe's contexts?    stackoverflow.com

I'm building a web-based code editor and ran into trouble handling focus. It's obvious that I need to move into iframe for every editor instance. However, I'm not sure if it's possible to ...

17. IE8 errors when I try to call a function on the parent page from inside an iFrame    stackoverflow.com

I have a parent page with a function coded like this:

function testfunction() {
    alert('hi');
}
That page has an iFrame coded like this:
<iframe src="testinside.htm"></iframe>
Testinside.htm has this link that calls the ...

18. scrape parent page html from iframe    stackoverflow.com

I have an iframe which is used to generate a PDF from its parent page. The PDF maker (ABCpdf) requires an HTML file which it then converts. What I do at present ...

19. convert iframe document into parent document    stackoverflow.com

Sorry for the rough title. I have an iframe into my document. I want that on some event the iframe destroys itself becoming the parent (main) document. For example, running the ...

20. Pass value from iframe to parent of different domain or port    stackoverflow.com

I want to Pass value from iframe to parent of different domain and port , can i do that if yes than how?

21. From an iframe whose src is an external domain, what methods are available via the "parent" object?    stackoverflow.com

I'm aware of the cross-domain issue with iframes accessing the parent's DOM and vice-versa, however I found that the iframe can redirect it's parent to another location. Take a "parent" page ...

22. Control Inner iframe's from parent    stackoverflow.com

According to this answer: Invoking javascript in iframe from parent page I have an iframe that loads a page that has a div with the id flash_container

<iframe src="http://www.remote.com/a.html" id="iframeID">
I placed this code ...

23. Trigger a function from an iframe but execute as if triggered from parent document?    stackoverflow.com

I've got a parent page, with a child iframe... When clicking on a specific button inside the child iframe, I want a function to trigger as if it were originating from ...

24. Javascript: Calling function in parent from iframe    stackoverflow.com

Hello StackOverflow community, I was having a problem with my iframe and javascript. Lets say I have an index.html with an iframe in the body. Withing the index.html I have ...

25. Why checking for iframe parent function returns true when no iframes involved?    stackoverflow.com

This is the scenario: we have a x.html page that could be loaded as a "standalone" page or as frame of another page y.html (same domain). Both pages have a function ...

26. how to disable script in iframe to control the parent?    stackoverflow.com

i have set up a demo which use iframe to include an target webpage for people to add some widgets on it, but some website has script to detect if it ...

27. javascript adding code to a parent iframe    stackoverflow.com

been struggling with this for some time now, im trying to add a function to the main window from an iframe, but the only way i can get it to work ...

28. Getting parents document from iFrame    stackoverflow.com

I have seen some elegant solutions on fetching the parents document from iframe - like e.g. this one. However, I can't make it work - and I didn't think this ...

29. Use an object from the parents document inside an iframe?    stackoverflow.com

I create an object in a document during thje onload event for the body and then later an iframe. I need to have access to that object (with all methods) ...

30. XDomain- Iframe calling parent API function    codingforums.com

Well, you can't do cross-domain cross-window scripting, period. But if you mean that the API in the parent window came from another domain, one thing you could always do is create "helper" functions in the parent that in turn call the API functions. So long as the main parent window and the survey window load from the same domain, you should ...

31. posting parent and iframe from parent    codingforums.com

"; print_r($_POST); print ""; ?> New Document

...

Name
Address

32. Iframe not talking to parent.    codingforums.com

I'm working on a upload script that uses javascript, and a hidden iframe to upload the files. It all works up until the iframe finishes and needs to send the javascript function call back to the parent page, nothing happens, when it should hide the upload progress bar. I've searched and searched for the awnser, along with trying different alternative to ...

33. target parent iframe possible?    codingforums.com

34. Script in an IFRAME not calling particular function defined in the parent document?    bytes.com

After following the instructions from the answer below: http://bytes.com/topic/javascript/answers/153274-script-iframe-can-not-call-functions-defined-parent-document I was able to have the child window perform the function in the parent window. The function was to only have an alert window pop up as the child page was loading. I easily modified this to my intention which was to have a parent function performed when the child window was ...

35. Calling a function from the iframe to the parent    bytes.com

Aaahhhh, Already one step closer... What I didn't mention in my post is that my parent is actually an HTML Application and not an ordinary html-page. So first of all I had to put the application="yes" inside my iframetags. But still it doesn't work... So appearantly the hta doesn't work with parent.

36. Accessing iframe body from parent    bytes.com

37. Passing Values from iFrame to Parent    forums.digitalpoint.com

Hi I was hoping that maybe someone can help me with a little problem I'm having. I'm currently in the process of creating a CMS and I have also developed an uploading script to go along with it. The user will land on the Create New content page and will write/modify whatever he has to and go from there. Additionally, along ...

39. Calling an anchor in the parent page from the iframe    forums.devshed.com

-------------------------------------------------------------------------------- hi, i have a page containing an iframe somewhere in the middle of it. the iframe stretche to the end of the page and its height is calculated from its content with javascript. i want some of the pages i load into the iframe to have a "back to top" link at the bottom. but i can not put the ...

41. Pass data from iframe back to parent page    forums.devshed.com

Yes, XSS. I can only think of one workaround, and that is to have the sites with parent.php also implement "proxy.php", which basically would just proxy these requests to widgetserver/widget.php. My application is fairly complex however, and things like sessions and absolute urls would need to be handled - gets ugly quickly without a full-featured reverse-proxy solution. I was hoping that ...

42. Send iframe parent to server?    forums.devshed.com

Hello everyone, on our site we offer a flash video player and i want people to be able to put it on their own site. I did this using a little player script and offering an iframe code snippet that people can copy of the site. Now I found find it really interesting where the player ends up. I tried using ...

43. Parent doc anchor when iframe reloads    forums.devshed.com

44. Parent of Iframe    forums.devshed.com

45. Calling JS method in parent from iframe    forums.devshed.com

I have a HTML page that's ran locally on a clients computer. It contains an iframe containing a web page on my server. Is it possible to pass information too and from the parent page and it's iframe page? More precisely, I need to run a JS method that's in the parent (client-side) page, from the iframe page (server-side), without refreshing ...

46. Assign value from parent page to field in iframe    forums.devshed.com

I have a DAP with an Id and a Name fields from a table. And on this DAP i have a iframe where a call another DAP with several fields from other table that has the Id field has foreign key from the first table. The way i have this working now works good when there is related data between the ...

48. calling parent from child iframe    forums.devshed.com

49. Targeting the parent PAGE from within a child IFRAME?    forums.devshed.com

Hello, I am utterly stuck and cant find the answer to this anywhere on the net! I have a page (it happens to be ASP) on the page at the bottom it calls an IFRAME that pulls thumbnails from a database, you click on the thumbnail to go to the page with the thumbnails details. I need the IFRAME to stay ...

50. Iframe's parent    devnetwork.net

I'm currently developing a site, which contains a shoutbox in an iframe. when the shouts are displayed, i also include a link to the shouters profile, which should have target set as the parent window, but iI can't come up with how to do that... I've tried using target='_top', '_self' and lots of others, but which one is the right one? ...

51. Accessing parent js code from iframe    phpfreaks.com

52. A link in parent that refreshes a page in an iframe    sitepoint.com

Red