XML Server Getting Started    
To further illustrate XMLSP scripting, let us consider the simple  addition  screen consisting of two data entry fields, 
represented by 
xsp:editmask
 elements named  a  and  b , respectively, and one result field, represented by standard HTML 
SPAN
 named  c . Whenever user tabs or clicks away from modified  a  or  b  cell, the value of  c  gets modified by the 
sum of the two numbers (
/Examples/Tutorial/step3.jsp
): 
 
 
 
 
  "Optimistic" Calculator (do not enter non numbers!)

  +=  
   
 
 
As far as event information, the preferred way for event handling methods to get and modify information about the event is to 
use the event object of the window object. One can alter the default logic flow in events like onItemChanging,  onItemError, 
etc. by setting the window.event.returnValue to false.  As another example, our  calculator  could be extended to provide 
some rudimentary validation of the data entered (
/Examples/Tutorial/step4.jsp
:): 
 
 
 
 
  

"Validating" Calculator

Allowed values are positive integers from 0 to 100; try other values to test
validation) 

   + =
label=""/> 

   
 
 

 
  
  
    
Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates Web Design Templates Interland Web Hosting Cheap Web Hosting Java Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.