Forum Moderators: open

Message Too Old, No Replies

Targeting the iframe parent with a form? i'am trying to but.

         

nicorobin007

3:14 pm on Mar 20, 2010 (gmt 0)

10+ Year Member



i have an iframe that display an externe HTML page. This externe HTML page use a form to send some data(POST method)
i would like the FORM to send its data to the iframe
i tried some thing like window.parent.frames.Myframe and window.parent.frame[myframe]but it didnt work
how to send the data to the parent iframe?

adni18

6:25 pm on Mar 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try this in the <form> tag:
target="_top"

daveVk

10:22 pm on Mar 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try searching "iframe same origin policy", you may find a workaround to fit your needs.

whoisgregg

1:20 pm on Mar 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the iframe is loading a page from a different domain than the framing page, then there's simply no way to acccomplish this. The browser cross-domain security model prevents it.