- 2070 Magh · 4+7 marks
AJAX features; CGI, Perl, JavaScript helpers
Short answer
AJAX features asynchronous background data exchange, partial page updates via DOM, reduced data transfer, and a responsive desktop-like interface. CGI enables server-side dynamic content generation; Perl excels in text processing and form handling for CGI scripts; JavaScript provides client-side validation, DOM manipulation, and the XMLHttpRequest foundation for AJAX, together creating efficient interactive systems.
What are the features of AJAX programming? How the helper applications like CGI, PERL, and JAVA Scripts help to develop better internet and intranet system? Explain.
Features of AJAX programming
AJAX (Asynchronous JavaScript and XML) is a group of techniques for building interactive web pages that exchange data with the server in the background.
- Asynchronous requests: the page sends a request using
XMLHttpRequest(orfetch) and keeps running without freezing. - Partial page update: only the changed part of the page is refreshed using the DOM, so there is no full reload.
- Less data transfer: only the needed data (XML or JSON) is sent, saving bandwidth.
- Better user experience: quick response, live validation, auto-complete.
- Standards-based: uses HTML/XHTML, CSS, DOM, JavaScript and XML/JSON; no plug-in is required.
- Platform and server independent: the server can be PHP, JSP, ASP or CGI.
- Event driven: server responses are handled by callback functions.
Role of CGI, Perl and JavaScript
CGI lets the web server run programs on request. It processes forms, queries databases, builds pages dynamically and handles features such as counters, search and e-commerce orders. It turns static websites into interactive internet and intranet systems and works with any language.
Perl was historically the most popular language for CGI scripts.
- Strong text and pattern matching, so it is excellent for form processing and report generation.
- The
CGI.pmandDBImodules simplify form handling and database access. - Free and available on all platforms, with many ready-made scripts.
- Used for system administration scripts on intranets.
JavaScript is a client-side scripting language that runs in the browser.
- Validates form input before sending, which reduces load on the server and network.
- Gives dynamic effects (menus, calculations, dialogs) by controlling the DOM.
- Makes AJAX possible by sending background requests.
- Works with cookies and browser features, giving a quicker interface.
Together: JavaScript handles the user interface on the client, CGI/Perl does the server work (security checks, database, mail), and data moves between them over HTTP. This split reduces server load, speeds up response and makes applications richer and cheaper to develop.
Browser (HTML + JavaScript) --HTTP--> Web server
validation, DOM runs CGI (Perl)
<---------- result ------------ database / mail
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- CGI working; JSP vs ASP; AJAX · Internet and Intranet, chapter 6
- XML and JavaScript for client-side web apps · Internet and Intranet, chapter 6
- Internet vs Intranet and DNS need · Internet and Intranet, chapter 1
- Intranet, Internet, Extranet comparison and resources · Internet and Intranet, chapter 1
- Intranet vs Internet, firewall, content filtering · Internet and Intranet, chapter 1
- Intranet vs Internet and intranet protocols · Internet and Intranet, chapter 1
- Two ways science can help society develop · Communication English, chapter 2
- Server-side programming and Java Servlet · Web Technology, chapter 3
- Internet, intranet and extranet use · Information System, chapter 1
- Short note: Internet / Intranet · Basic Electronics Engineering, chapter 5