+2 votes
in AJAX by
What do you need to know to create my own Ajax Functionality?

1 Answer

0 votes
by
If you propose now no longer to reuse a present AJAX aspect, right here are a number of the matters you may want to recognize.

JavaScript: JavaScript is a loosely typed item-primarily based scripting language supported through all foremost browsers and crucial for AJAX interactions. JavaScript in a web page is referred to as whilst an occasion in a web page happens inclusive of a web page load, a mouse click, or a keypress in a shape element.

Plan to research Dynamic HTML (DHTML), the generation this is the inspiration for AJAX. DHTML permits browser-primarily based real-time interplay between a person and an internet web page. DHTML is the aggregate of JavaScript, the Document Object Model (DOM), and Cascading Style Sheets (CSS).

DOM: An API for getting access to and manipulating established documents. In maximum instances, DOM represents the shape of XML and HTML documents.

CSS: This permits you to outline the presentation of a web page inclusive of fonts, colours, sizes, and positioning. CSS permits a clean separation of the presentation from the content material and can be modified programmatically through JavaScript.

Understanding the simple request/reaction nature of HTTP is likewise critical. Many diffused insects can result in case you forget about the variations among the GET and OIst techniques whilst configuring XMLHttpRequest and HTTP reaction codes whilst processing callbacks.

JavaScript is the consumer-aspect glue, in a sense. JavaScript is used to create the XMLHttpRequest Object and cause the asynchronous name. JavaScript is used to parse the back content material. JavaScript is used to investigate the back records and system back messages. JavaScript is used to inject the brand new content material into the HTML using the DOM API and to adjust the CSS.

Related questions

+1 vote
asked Nov 27, 2022 in AJAX by sharadyadav1986
+2 votes
asked Nov 26, 2022 in AJAX by SakshiSharma
...