Accessing the Content of the HtmlPlaceHolder

2 posts, 1 answers
  1. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 28 Oct 2010 Link to this post

    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

    Is there a similar way I can access the embedded iframe like I did previously, thus allowing me to access the ActiveX object?
  2. Answer
    Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 28 Oct 2010 Link to this post

    Hello Andrew,

    Please have a look at this KB Article: Calling Javascript functions from RadHtmlPlaceholder

    Also, here is more on calling JavaScript from Managed Code.

    Let me know if this helps or your need further assistance on the topic.

    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top