In the TX Text Control support department, we are often asked whether TX Text Control works in Netscape Navigator. As Netscape does not support ActiveX components itself (rather it works with its own a plug in technology) it is not that easy to use objects like TX Text Control with it.
We recently came across a Netscape plug in that does allow you to run TX Text Control in Netscape. It is called 'Esker ActiveX Plug-In for Netscape' and is free of charge. However, no support is available from Esker, nor is its functionality guaranteed in any way.
So, now we have that legal disclaimer out of the way (Esker asked us to mention that), we can take a look at how easy it is to get TX Text Control to run in Netscape.
This example assumes that you have already installed TX Text Control on your computer.
Copy the files npeskp32.dll (np6esk32.dll for Netscape 6) into the following Netscape directory: ..\netscape\Program\Plugins
Now we simply have to embed TX Text Control into an HTML page. As Netscape does not support the object tag, we need to use it's plug in technology. Cut and paste the following code and save it as an .html file:
To connect a TX Text Control component (like for example the TX Button Bar), we simply need to call the function that connects the Button Bar in the section of the HTML document:
The function that connects both components looks like this:
The "onLoad" event of the HTML body object is fired by Netscape before the ActiveX controls are actually activated. A good way to use the "onLoad" event is as follow:
if (window ["objTX"])
// the activex control is activated
// the activex control is not activated yet, retry later...
setTimeout ("Init()", 100);
// access to the TX Text Control properties
objTX.Text="TX Text Control in Netscape";
Sample code that can be directly run, is in the above downloadable file. Take a look at the file step1_netscape.htm.
The Newsletter Team