Forum Moderators: open

Message Too Old, No Replies

Targets: sending the postdata from an iframe to the parent

         

ahmedtheking

6:03 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I haven't played with frames in ages, but how can I tell a form within an iframe to send the postdata to the parent (?) document? I tried setting target as _parent, but it didn't work, any ideas?

cmarshall

6:49 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll bet it is best handled using JavaScript DOM messaging. I don't have time to mess with it, but I'll lay odds that's the most effective way.

ahmedtheking

8:59 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nah I figured out that it was _top. So I wonder what _parent means? I assume it means "the top of this file" where _top means "the top frame"?

cmarshall

9:37 pm on Jan 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Be careful. "_top" refers to the tippy-top frame. If the parent frame is contained within another frame, I don't think it will be _top anymore (or at least that's the way it works with regular frames).