Click to See Complete Forum and Search --> : Calling Parent Functions from iFrame


matt.carter.25
12-06-2004, 09:33 AM
Does anyone know how to call parent functions from an iframe?
Or if it can be done?

Thanks
Matt

7stud
12-06-2004, 01:13 PM
Just like in a normal frame:

parent.someParentFunction();
var a = parent.someParentVariable;

matt.carter.25
12-07-2004, 03:16 AM
Thanks Man, i was kinda being a bit stupid,
And knew this all along, just spelt somthing wrong and thought oh it must be a security issue with iframe but no, just being plain arsed stupid.

Matt