In: Categories » Computers and technology » JAVA » Deploying Java Applets in a Mixed Browser Environment
| You can deploy applets for users of both Internet Explorer and the Mozilla family of browsers in one of two ways: Through pure HTML Using Pure HTMLWhen using a pure HTML approach to deploy applets in a mixed-browser environment, note the following: 1. Internet Explorer
2. Mozilla browsers
Consider the following example code from an HTML page: <object classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA" Using JavaScriptInstead of using the pure HTML approach described above, you can use JavaScript to deploy applets in a mixed-browser environment. Through JavaScript, you: 1. Detect the user's browser through the appName variable.
In the following example, the document.write() method outputs either an embed or object tag for each user "on the fly": <html>
|
legal disclaimer
1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service
Useful tools and features
related articles
An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions. When an error occurs within a method, the method creates an object and hands it off to the runtime system. The object, called an exception object, contains information about the error, including its type and the state of the program when the error occurred. Creating an exception object and handing it to the runtime system is called throwing an exception. After a method throws an excep...
2. How to use the PATH and CLASSPATH environment variables on Windows Solaris and Linux
This section explains how to use the PATH and CLASSPATH environment variables on Microsoft Windows, Solaris, and Linux. Consult the installation instructions included with your installation of the Java Development Kit (JDK) software bundle for current information. After installing the software, in the JDK directory, the bin directory contains both the compiler and the launcher. Update the PATH Variable (Microsoft Windows NT/2000/XP) You can run Java applications just fine without setting the PATH varia...
3. Reasons to Write a Custom Collection Implementation in JAVA
Many programmers will never need to implement their own Collections classes. Someday you might want to write your own implementation. It is fairly easy to do this with the aid of the abstract implementations provided by the Java platform. Before we discuss how to write an implementation, let's discuss why you might want to write one. Reasons to Write an Implementation The following list illustrates the sort of custom Collections you might want to implement. It is not intended to be exhaus...
4. How to create a JAR File
The basic format of the command for creating a JAR file is: jar cf jar-file input-file(s) The options and arguments used in this command are: The c option indicates that you want to create a JAR file. The f option indicates that you want the output to go to a file rather than to stdout. jar-file is the name that you want the resulting JAR file to have. You can use any filename for a JAR file. By convention, JAR filenames are giv...
5. What Is a Java Object ~ Advantages of bundling code into individual software objects
Objects are key to understanding object-oriented technology. Look around right now and you'll find many examples of real-world objects: your dog, your desk, your television set, your bicycle. Real-world objects share two characteristics: They all have state and behavior. Dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging tail). Bicycles also have state (current gear, current pedal cadence, current speed) and behavior (changing gear, changing pedal cadence, applying brakes). Identifying t...
6. Processes and Threads in Java programming language
In concurrent programming, there are two basic units of execution: processes and threads. In the Java programming language, concurrent programming is mostly concerned with threads. However, processes are also important. A computer system normally has many active processes and threads. This is true even in systems that only have a single execution core, and thus only have one thread actually executing at any given moment. Processing time for a single core is shared among processes and threads through an OS feature called...
7. Steps to follow when writing a custom implementation
The process of writing a custom implementation follows: 1. Choose the appropriate abstract implementation class from the preceding list. 2. Provide implementations for all the class's abstract methods. If your custom collection is to be modifiable, you'll have to override one or more of the concrete methods as well. The API documentation for the abstract implementation class will tell you which methods to override. 3. Test and, if necessary, debug the implementation....










