Java EE Fifth Week job

Source: Internet
Author: User

Applet:

Applets are small applications written in the Java programming language, which can be contained in HTML (an application of the standard Universal Markup Language) page, in much the same way as the page contains images.
The HTML file code of the Web page containing the applet has a pair of tags such as <applet> and </applet>, when a Java-enabled web browser encounters this pair of tags, The appropriate applet code is downloaded and executed on the local computer.

Java applets can greatly improve the interactivity and dynamic execution capabilities of Web pages. Pages that contain applets are called java-powered pages, which can be referred to as Java-supported web pages.
When an applet user accesses such a Web page, the applet is downloaded to the user's computer for execution, but only if the user is using a Java-enabled web browser. Because the applet is executed on the user's computer, its execution speed is not limited by the network bandwidth or modem access speed, the user can better appreciate the multimedia effect produced by the applet on the webpage.
In the Java applet, it can realize the functions of drawing, font and color control, animation and sound inserting, human-computer interaction and network communication. The applet also provides a window environment development tool called the Abstract Window Toolbox (Toolkit, AWT). AWT uses the GUI elements of the user's computer to create a standard graphical user interface, such as Windows, buttons, scroll bars, and so on. At present, there are many examples of applets on the network to vividly show these functions, readers can go to the corresponding pages to see their effects.
The implementation of applet applets relies primarily on the applet classes in the Java.applet package. Unlike a typical application, an applet application must be embedded in an HTML page to be interpreted and executed, while an applet can get parameters from a Web page and interact with the Web page.

Ajax:

ASynchronous Javascript and XML, referred to as Ajax

Ajax is a technique for creating fast, Dynamic Web pages.
Ajax is a technique that can update parts of a Web page without reloading the entire page.
Ajax enables Web pages to be updated asynchronously by exchanging small amounts of data in the background with the server. This means that you can update a part of a webpage without reloading the entire page.
Traditional Web pages (without Ajax) if you need to update the content, you must reload the entire page page.

Ajax is not a new programming language, but rather a technique for creating better, faster, and more interactive Web applications.
Use JavaScript to make requests to the server and handle the response without blocking the user! Core Object XMLHttpRequest. With this object, your JavaScript can exchange data with the WEB server without reloading the page, that is, the effect of a local refresh occurs without the need to refresh the page.
Ajax uses asynchronous data transfer (HTTP requests) between the browser and the Web server, which allows the Web page to request a small amount of information from the server, rather than the entire page.
Ajax can make Internet applications smaller, faster, and friendlier.

Ajax is a browser technology that is independent of WEB server software. Ajax is based on the following WEB standards:
The WEB standards that JavaScript, XML, HTML and CSS use in Ajax have been well-defined and supported by all major browsers. Ajax applications are independent of browsers and platforms.
WEB applications have many advantages over desktop applications, they can involve a wide range of users, they are easier to install and maintain, and are more easily developed.
However, Internet applications are not as perfect and friendly as traditional desktop applications. With Ajax, Internet applications can become more complete and friendlier.

Java EE Fifth Week job

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.