search
Login

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

0 votes
18 views
asked Guru 27.1k points 31 50 97

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 Guru 24.6k points 29 52 81
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 Expert 13.2k points 27 40 59

Related questions

0 votes
1 answer 37 views
0 votes
1 answer 117 views
0 votes
1 answer 30 views
30 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 13 views
13 views
asked keem Expert 13.2k points 27 40 59
0 votes
1 answer 7 views
7 views
asked keem Expert 13.2k points 27 40 59
...