Over the years, JavaScript has evolv and incorporat other technologies. We will now introduce the most important of them (DOM, OOP, regEx, AJAX, canvas).
Beginnings and DOM
Very soon after the start of the there was a ne for technologies that would allow websites to interact with users. The first innovation in this direction was the automatic generation of pages through the CGI interface ( Common Gateway Interface ). One of the main disadvantages of this solution was the slow response of CGI scripts, so we start to think about how at least some tasks could be mov from the server to the client, which would mean a significant spain phone number data acceleration. The desir salvation came in two variants. The first was the new Java language , introduc by Sun Microsystems, which made it possible to write Java applets – programs integrat directly into the page. The second was JavaScript in 1996 .
The possibilities of JavaScript
Were not dizzyingly extensive in the original implementation. Netscape, but that chang in 1997 with the advent of IE 4. The new browser from Microsoft, it was already possible to access. Change every object on the page (so-call DHTML). Rival Netscape soon. Develop a similar API. Since similar does not mean the same , programmers had to create more complex scripts or write them for only one of the browsers. The situation was resolv only by the W3C, which develop the DOM ( Document Object Model ) and introduc it as a standard. In it, it specifi an interface for accessing document objects and events. Of course, this is not enough, so the DOM is supplement with other APIs, most of which are document in the upcoming HTML 5 specification (the most important of them include, for example, the drag and drop API, the Canvas or the API for playing multimia objects .
The astute reader will have notic embracing the possibilities of the future that the above combination of scripts will cause an infinite loop of rirection. It would be advisable to break this loop in some way. For bw lists example, we can add additional information to the URL in the PHP rirection, which will probably not affect the display of the original page, but our JavaScript will recognize that it no longer has to do anything.