Products Technologies Demo Docs Blog Support Company

Activating the BrowserTextControl Automatically

Since objects like Flash, ActiveX controls or .NET assemblies must be activated in Internet Explorer manually, you have to click on it to be able to use them. This is also valid for the BrowserTextControl of TX Text Control Server for ASP.NET (incl. Windows Forms). To read more about the reason for this change in Internet Explorer, please have a look at this blog entry. Using ActiveX controls with the latest MSIE patch To solve this issue in Internet Explorer 7.0, you have to add the object…

Activating the BrowserTextControl Automatically

Since objects like Flash, ActiveX controls or .NET assemblies must be activated in Internet Explorer manually, you have to click on it to be able to use them. This is also valid for the BrowserTextControl of TX Text Control Server for ASP.NET (incl. Windows Forms). To read more about the reason for this change in Internet Explorer, please have a look at this blog entry.

Using ActiveX controls with the latest MSIE patch

To solve this issue in Internet Explorer 7.0, you have to add the object dynamically using Javascript. Just insert a DIV section into the ASPX page:

<div id="container">
</div>

This element will be used to add the object to the page. The Javascript that appends the object to the page must be a seperate file. In the ASPX page, we simply have to insert a reference to it:

<script src="script.js" type="text/javascript" language="javascript">
</script>

The Javascript itself creates a new object tag that will be added as a child to the container DIV section:

function activateControl(ContainerDIV,ClassID,Width,Height,Id)
{
    var myObject = document.createElement(\'object\');
    var containerObject = document.getElementById(ContainerDIV);

    containerObject.appendChild(myObject);
    myObject.width = Width;
    myObject.height = Height;
    myObject.classid = ClassID;
    myObject.id = Id;
}

activateControl(\'container\',\'http:BrowserBin/BrowserApplication.dll#BrowserApplication.BrowserAppControl\',800,600,\'BrowserApp\');

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

BrowserTextControl

TX Text Control Security Wizard Available

In order to run the BrowserTextControl component in Internet Explorer, the .NET Framework security mechanism Code Access Security (CAS) must be adjusted. Our documentation describes how to adjust…


BrowserTextControl

Overriding IE's Predefined Shortcuts Like CTRL-B

CTRL-B is the de facto standard shortcut for making a selection bold in word processing applications. When trying to implement that into a BrowserTextControl based user control that is used in…


BrowserTextControlSampleVisual Studio

BrowserTextControl: Using Post-build Events in Visual Studio

When developing with TX Text Control Server for ASP.NET (incl. Windows Forms) and it's BrowserTextControl class, you might have learned that you need to clear the .NET download cache (dl3)…


BrowserTextControlServerTextControl

BrowserTextControl: Compressed File Transfer

The BrowserTextControl class allows developers to deploy true WYSIWYG word processing applications to the web. Using this .NET component, it is possible to load, modify and save fully featured MS…


BrowserTextControl

ASP.NET: Getting the Client's .NET Version

To use TX Text Control Server for ASP.NET (incl. Windows Forms)'s BrowserTextControl in the Internet Explorer, the .NET Framework must be installed on client-side. A client-side control is…