To conclude this chapter, it should also be mentioned that you do not even need Ajax to create Ajax-like effects. Or, to be more technically accurate, you do not need
Figure 16-5 shows the concept: the code is loaded in either a hidden frame (
<frame> element) or in an invisible
<iframe> element). The latter option is preferable, because
iframes can be embedded into a page. Then, the code in the iframe can change other HTML elements on the page.
Figure 16-5. Emulating Ajax without XMLHttpRequest
First of all, an invisible
iframe is required:
<iframe name="calculator" style="display: none;"></iframe>
As you can see, the
iframe is ...