One of the most pleasant things for the visitor of technological enhancements is the appearance of dynamic updated pages. And that is why: waiting for reboot of page after a choice of any option or passage under the link even if this waiting makes half of second is a psychological barrier to action. It is even more complexities at those visitors who use the Internet through the narrow channel of access. It is pleasant that progress isn’t necessary on a place and the majority of such moments can be removed by means of plain scenarios JavaScript.

The first and the most primitive variant are the latent frames or the latent “floating” frames.

Idea: there is a frame which actually is independent page. In it by means of parameters the data for handling is transferred. After handling by a script if it is needed by means of JavaScript it is possible to update necessary elements of causing page. The frame can be hidden, if it doesn’t fulfill any visual function. For this purpose it is possible to set style hidden: none; or to specify the sizes height.

Implementation ?1. The ordinary frame.

There is a page with the frames one of which fulfills a role of the command.

Implementation ?2. The floating frame which is built in ordinary page without frame.

Idea: the data is transferred to handling on pseudo page, in the small frame which makes actions. Advantage is that there is no necessity to alter page structure. The floating frame can be hidden by means of styles or to make absolutely small. Differently it is more perfect variant of the first implementation.

Implementation: there is a layer in which is this frame. This frame receives a name for addressing possibility at “passage”. Generally, usage of styles together with such technologies can make a site very functional and attractive.

Interactive operation with page:

The second and more perfect method is usage of class JavaScript. It was historically added that this class in different browsers is implemented differently. With it there is a small complexity, however in remaining it is perfect as gives the chance not only to direct data acquisition, but also asynchronous operation. So, there are 2 operation modes. In what is a difference?

The synchronous mode. It means that data exchange happens sequentially: the script requests, looks forward to hearing, the server returns result, the script forms again request and again it is sent etc. by It means that it is impossible neither to organize parallel actions on page, nor to trace the status of performance of the given request. Actually advantage before ordinary passage under the link or sendings of the form isn’t present.

Asynchronous mode. At it the data is processed parallely with other actions. It is implemented by means of a handler function which is caused at altering of running states of the given operation. Thus, it is possible to learn the status of operation and in the end of its performance to sum up, to fulfill any action (to display result). This mode gives exhaustive possibilities on data handling in a background mode.

Bonuses. We have considered the most simplified diagram of operation with XMLHttpRequest. Actually, this class conceals in itself great curious.

Today the Internet technologies are very popular. The web network is not only a place to entertain but also a space to earn money. Whatever the reason is, to be presented in the Internet one needs a site. And this is when the question how to make a website arises. Those who are looking for details on how to build a website, should refer to the Internet itself. It is full of tutorials on how to make a website and related topics.

In any way, it wouldn’t be smart not to take advantage of this opportunity provided to us by digital technologies. Google and other search engines, social networks and forums, blogs – all of them could assist to find info on “make a business website” and similar topics.

Leave a Reply