I have a RadHtmlPlaceHolder that hosts a local page that contains an ActiveX control. I need to execute a javascript function of that ActiveX control from the main Silverlight project.
Previously I have used the same control in one of your HtmlPlaceHolders for ASP.NET and had no problem executing a javascript function againt the embedded control like so:
function
SaveChangesBeforePostback()
{
var
frame = window.frames[
"DocViewDock_C_DocView_frmDocView"
];
if
(frame !=
null
)
{
var
frameDocument = frame.document;
if
(frameDocument !=
null
)
{
var
myActiveXControl = frameDocument.getElementById(
"PageLayout_IrcDocViewer"
);
if
(myActiveXControl !=
null
)
{
myActiveXControl.ExSaveAnnoChanges();
}
}
}
}
Is there a similar way I can access the embedded iframe like I did previously, thus allowing me to access the ActiveX object?