This is a migrated thread and some comments may be shown as answers.

Accessing the Content of the HtmlPlaceHolder

1 Answer 43 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 28 Oct 2010, 02:00 PM

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 28 Oct 2010, 03:02 PM
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.

Greetings,
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
Tags
HTMLPlaceHolder
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or