CD-387Appendix F . Examples from Parts III and (Apache web server)

CD-387Appendix F . Examples from Parts III and IV Figure 18-2: Clicking the Write To Below button in the upper frame causes a script to assemble and write HTML for the bottom frame. A second point to note is that this example customizes the content of the document based on user input. This customization makes the experience of working with your Web page feel far more interactive to the user yet you re doing it without any CGI programs running on the server. The third point I want to bring home is that the document created in the separate frame by the document.write() method is a genuine document object. In this example, for instance, the tag of the written document changes if you redraw the lower frame after changing the entry of the name field in the upper frame. If you click the lower button after updating the bottom frame, you see that the document.titleproperty has, indeed, changed to reflect the <TITLE>tag written to the browser in the course of displaying the frame s page (except in NN4/Mac, which exhibits a bug for this property in a dynamically written document). The fact that you can artificially create full-fledged, JavaScript document objects on the fly represents one of the most important powers of serverless CGI scripting (for information delivery to the user) with JavaScript. You have much to take advantage of here if your imagination is up to the task. document.write() <br />We recommend cheap and reliable webhost to host and run your web applications: <a href="http://coldfusion.bluewebsitehosting.net">Coldfusion Web Hosting</a> services. </p> <p class="postmetadata alt"> <small> This entry was posted on Friday, December 28th, 2007 at 1:07 pm and is filed under <a href="http://domain.solidwebhosting.net/category/domain/" title="View all posts in Domain" rel="category tag">Domain</a>. You can follow any responses to this entry through the <a href='http://domain.solidwebhosting.net/domain/cd-387appendix-f-examples-from-parts-iii-and-apache-web-server/feed/'>RSS 2.0</a> feed. You can <a href="#respond">leave a response</a>, or <a href="http://domain.solidwebhosting.net/domain/cd-387appendix-f-examples-from-parts-iii-and-apache-web-server/trackback/" rel="trackback">trackback</a> from your own site. </small> </p> </div> </div> <!-- You can start editing here. --> <!-- If comments are open, but there are no comments. --> <h3 id="respond">Leave a Reply</h3> <form action="http://domain.solidwebhosting.net/wp-comments-post.php" method="post" id="commentform"> <p><input type="text" name="author" id="author" value="" size="22" tabindex="1" /> <label for="author"><small>Name (required)</small></label></p> <p><input type="text" name="email" id="email" value="" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) (required)</small></label></p> <p><input type="text" name="url" id="url" value="" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <!--<p><small><strong>XHTML:</strong> You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> </small></p>--> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="356" /> </p> </form> </div> <hr /> <div id="footer"> <!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. --> <p> Struts, Ftp Web Hosting, Jsp, Tomcat, J2Ee, Hibernate Programming Blog is proudly powered by <a href="http://www.visionwebhosting.net/">cheap hosting</a> <br /><a href="feed:http://domain.solidwebhosting.net/feed/">Entries (RSS)</a> and <a href="feed:http://domain.solidwebhosting.net/comments/feed/">Comments (RSS)</a>. <!-- 22 queries. 0.055 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> </body> </html>