Section 4a.4. The big picture


4a.4. The big picture

Did you get all of that done? Check the diagram below, and make sure you have all the files you need for the Top 5 app, and have started on the code like we have.

 top5 Here's the top5/ folder you started with, in the chapter04/ examples directory. top5 top5.js   goes in the top5/ folder, along with the HTML and CSS for the page.               function addToTop5() {These two functions should just be placeholders for               now... we'll fill them in over the next few pages.                // Add a CD to the Top 5 list               }               function startOver() {                // Remove all CDs from the Top 5 and start over               }Your new JavaScript file should have something like this inside it. 

 top5.css   We'll have to add some CSS to this file later. top5.html           <html>           <head>            <title>Top 5 CD Recommendations</title>            <link rel="stylesheet" type="text/css"                    href="top5.css" />            <script type=Go ahead and            add a <script> element in the <head> of top5.html, referring to the            new JavaScript file you created.            "text/javascript" src="/books/2/850/1/html/2/top5.js" />           </head>           <body>            <div > 




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net