husted      2002/12/29 10:20:20

  Modified:    doc/faqs newbie.xml
  Log:
  Add Javascript section.
  
  Revision  Changes    Path
  1.8       +37 -1     jakarta-struts/doc/faqs/newbie.xml
  
  Index: newbie.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/faqs/newbie.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- newbie.xml        29 Dec 2002 17:35:22 -0000      1.7
  +++ newbie.xml        29 Dec 2002 18:20:20 -0000      1.8
  @@ -30,7 +30,11 @@
   
       <li><a href="#actionforms">Why are my checkboxes not being set from ON to 
OFF?</a></li>
   
  -    <li><a href="#reset"></a>Do I need to implement reset and set all my form 
properties to their initial values? </li>
  +    <li>
  +    <a href="#javascript">How do I use Javascript to ... </a>
  +    </li>
  +    
  +    <li><a href="#reset">Do I need to implement reset and set all my form 
properties to their initial values?</a></li>
   
       <li><a href="#scriptlets">Can't I just create some of my JavaBeans in the JSP 
using a scriptlet?</a></li>
   
  @@ -219,6 +223,38 @@
   </p>
   </section>
   
  +<section href="javascript" name="How do I use Javascript to ...">
  +
  +    <p>
  +    Struts is mainly a server-side technology. 
  +    We bundled in some JSP tags to expose the framework components to your 
  +    presentation page, but past that, the usual development process applies. 
  +    </p>    
  +    
  +    <p>
  +    Interactive pages require the use of Javascript. 
  +    (That's why it was invented.)
  +    If you want things popping up or doing this when they click that, 
  +    you are outside the scope of Struts and back into the web 
  +    development mainstream. 
  +    </p>
  +    
  +    <p>
  +    You use Javascript with Struts the same way you use with any presentation 
  +    page. 
  +    Since Javascript is a client-side technology, you can use simple relative 
  +    references to your scripts. 
  +    If you need to fire a Javascript from a HTML control, the Struts HTML tags 
  +    have properties for the Javascript events.
  +    </p>
  +    
  +    <p>
  +    A very good Javascript resource is Matt Kruse's site at 
  +    <a href="http://www.mattkruse.com/javascript/";>
  +    http://www.mattkruse.com/javascript/</a>
  +    </p>
  +    
  +</section>   
   
   <section href="reset" name="Do I need to implement reset and set all my form 
properties to their initial values?">
   <p>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to