C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers


10,705 users

How to use Servlets and Ajax?

0 votes
asked by john Guru (27,140 points)

2 Answers

0 votes
The way to update the page currently displayed in the user's browser (without reloading it) is to have some code executing in the browser update the page's DOM.

That code is typically javascript that is embedded in or linked from the HTML page, hence the AJAX suggestion. (In fact, if we assume that the updated text comes from the server via an HTTP request, this is classic AJAX.) It is also possible to implement this kind of thing using some browser plugin or add-on, though it may be tricky for a plugin to reach into the browser's data structures to update the DOM. (Native code plugins normally write to some graphics frame that is embedded in the page.)
answered by sara Guru (24,570 points)
0 votes
Normally you cant update a page from a servlet. Client (browser) has to request an update. Eiter client loads a whole new page or it requests an update to a part of an existing page. This technique is called Ajax. Using IFrame and ajax will be more useful....
answered by keem Expert (13,240 points)

Related questions

0 votes
1 answer 22 views
0 votes
1 answer 11 views
11 views asked by keem Expert (13,240 points)
0 votes
1 answer 5 views
5 views asked by keem Expert (13,240 points)