Javascript Form Processing
$30-100 USD
S-au achitat serviciile după ce au fost prestate
See example form in Deliverables Section. You will provide the appropriate javascript that will execute as the onEvent=theFunction" occurs for the various fields. Need to loop through a group of form fields making calculations based upon the info users type into the forms as well as upon strings held in hidden fields. Some free form calulations involved. IE. perhaps math functions like sin(formfield2)* formfield3. Need to color the form field backgrounds based upon results of the calculations. Need to trap invalid input (ie text in a numeric form field) and color the background for the field red. Need the code to be documented so that I can make minor changes, or perhaps enhancements. Just don't know javascript well enough yet to do this. The form is dynamically generated. The number of user input formfields and the order in which they appear is ONLY KNOWN when the form is generated. Therefore the javascript needs to loop through the form...mulitiple times most likely...discovering what is there and taking action on it until the work is finished. My first take on how to do this... First loop through all form fields... when you encounter a field that begins... "item", - Trim any leading and trailing spaces, - Put the value into a variable for later recall... or maybe we can address the form value later without doing that. Second loop through all form fields a second time, this time stopping at the "Formula" and piecing the result of the formula together... and then putting that result into the form. Or.... perhaps you can do all that in the first pass of the loop. Third loop through the form again, this time checking to see if the input or calculated form values violate any of the control limits contained in the hidden fields. Change the background color to red on any values that violate the limits. Note: there are other form fields in the form being processed that are not in the example form. Their names will NOT conflict with the Naming Convention you will discover in the form. -------- The form fields you will be processing -------- [url removed, login to view] Visible Form Field ---hidden fields--- [url removed, login to view] Field Type [url removed, login to view] Field Database Link ---if numeric then these hidden fields--- [url removed, login to view] Upper Limit [url removed, login to view] Lower Limit [url removed, login to view] Second Upper Limit(SpecLimit) [url removed, login to view] Second Lower Limit(SpecLimit) ---if calculated X,R,S or C--- (see the example form for deatils of the forumulas) [url removed, login to view] Formula
## Deliverables
X Stands for X-Bar... an Average of the arguments in the formula
R Stands for Range... the Max-Min of the arguments in the formula
C Stands for Calculated... Some free form calculation like: sin(N2)* N3 + 3.1415
S Stands for Standard Deviation (n-1 weighting)
StdDev= [Sigma[(x-x_bar)²]/(n-1)]^1/2
## Platform
Must Run on IE 5.0 and up Must Run on Netscape 4.7 and up
ID Proiect: #2856202