Creating and Loading a Dynamic FrameBecause JavaScript can create page content on-the-fly, it's useful for loading dynamic data into frames based on a user's choice in another frame. Script 5.9 is a frameset that loads a dummy content page (Script 5.10) and Script 5.11, detailed next, that can create a page and load it into the main content frame. It creates a page that looks like Figure 5.9. Script 5.9. This frameset loads a dummy page, ready to be replaced by JavaScript.
Script 5.10. Speaking of which, here is the dummy page.
Script 5.11. This script creates a page and loads it into the main content frame.
Figure 5.9. Here's the result of Script 5.8, a Web page written by a JavaScript. The content of the frame on the right was generated under script control.[View full size image] To load a dynamic frame from another frame:
Tips
|
Tuesday, December 15, 2009
Creating and Loading a Dynamic Frame
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment