Use JavaScript to write applications on the browser

Source: Internet
Author: User

Use JavaScript to write applications on the browser

I want to create a chat room

It is about 1998
In middle December, my personal website was completed. This is a literary website, which uses Java Applet and Javascript in the browser, and provides a floatbar called "search assistant" for IE 4.0 browsers ), this API is used to quickly submit an article query request to the server. On the server, the ISAPI/cgi developed with Delphi is used to run on the popular windows
The IIS system on NT.

My next thought was to create a chat room. In my personal website, forums, BBS, and other websites are provided free of charge, but there is no chat room.

During the Spring Festival of 1999, I started this chat room in Sichuan and completed the prototype system (Beta 0). One month later, this chat room's beta 1 is finally running on the Internet shelving site (1-1
).

 

 

 

The function settings of this chat room are shown in Table 1-1.

 

 

There is a "Hidden Frame" in the upper right corner of the chat room, which is implemented using frameset. This was the earliest method to implement Remote Procedure Call. At that time, IFRAME was not recommended for web development, nor was there any popular Ajax. Therefore, from the status bar below the browser, we can also see the. dll in the chat room on the calling server-this is the ISAPI written in Delphi.
CGI. At that time, I did not know PHP, and ASP was not that popular.

This chat room uses JavaScript in a large amount in the browser. On the one hand, it is used to display chat information, control CSS display, and implement user interaction on the interface; on the other hand, I use it to implement a command center, encode the behaviors in the browser into commands and send them to the ISAPI of the server.
CGI. These commands are forwarded by the server to other users in the chat room, the javascript code in the target user's browser can interpret these commands and execute functions similar to "RENAME" and "Update List". The ISAPI on the server is basically only used for intermediate commands, therefore, the efficiency is very high. You may have noticed that this is actually different from the current Ajax
The idea is exactly the same.

Although this chat room is in beta0
We also tried to support NN 4, but gave up in Beta 1 because IE 4
The provided DHTML model can already use insertadjacenthtml
The webpage is dynamically updated, while NN 4 can only call document. Write
To modify the page.

 

 

 

 

This article is excerpted from the book "The essence of JavaScript language and programming practices (version 2nd.

Book details: http://blog.csdn.net/broadview2006/article/details/7533809

 

Related Article

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.