I have a page with an iframe like this:
<iframe runat="server" id="rsPrintFrame" src="framedPage.aspx" height="0" width="0"></iframe>
I need to get access to a component on the 'framed' page from the parent page, as one would typically do with $find()
or Sys.Application.findComponent()
. But obviously I can't simply do: myFrame.contentWindow.document.$find()
.
I've come up with a work-around involving making the $find()
call in the framed page and saving it to a variable accessible to the parent page via javascript.
But is there a straightforward way to call findComponent()
from the parent page while targeting a framed page's element/component.
BTW, getElementById()
is not an acceptable solution.