.

Saturday, January 26, 2019

The interesting topic

The purpose of this unit is to carry out a concrete investigation of a topic chosen from a cross out of options supplied by OCR. In the course of the investigation, there pass on be an probability to look in depth at an aspect of com designateing that goes beyond the subject matter outlined in A451. The tasks will require a significant element of practical activity, which must be evidenced in the report and which will model a major element of the assessment. The topics will enable practical investigation and some supplementary research to be carried out in a variety of ways.These will include, but ar not restricted to practical investigations with hardware or software practical investigations with online resources Supplementary research may be requi blushful and resources may include wind vane-based enquiry contact with IT professionals research using computer industry pu blications OCR 2010 A452 jani3/jun15 3 Candidates should complete all tasks. Validating web ashess Many web sites collect information from people using forms. These forms can be put together using HTML form objects. The information entered is normally move back to the web server where it is processed by database software.It is always a good idea if the data entered into a computer system is clear in order to reduce the number of errors that occur. A lot of this proof can be carried out at the client end of the process. In other words, processing can be carried out by the browser. at that place are various ways in which this can be done. A common way is to write books that intercept the input data and notice it before it is submitted to the server. There are various scripting languages that can be use to write the necessary validation routines. A popular trial runple is JavaScript. close to browsers are able to interpret JavaScript.JavaScript, Just like other elements of a web rapscallion, is best written using a plain textual matter editor such as Notepad. Scripts can be e mbedded in a web page or saved separately as JavaScript charge ups, using the extension Is. The web page can access these scripts when needed. here(predicate) is the starting point for a form that collects information about exam entries. File Edit View History Bookmarks Tools Help http//examentry. net mental test entry Exam Entry Form Name Subject buckle under Fig. 1 It contains two text boxes. When the Submit button is clicked, a script checks that both boxes have been filled in.Here is the HTML polity that lies behind the form and the JavaScript code that does the validation. function validateForm() var result = true if (document. ExamEntry. name. value=) monosodium glutamate+nou must enter your name document. ExamEntry. name. focus() document. getElementByld(name). style. color=red result = wrong if (document. ExamEntry. subJect. value=) msg+nou must enter the subject document. ExamEntry. subJect. focus() document. getElementByld(subJect). style. color=red result = fal se return result alert(msg) In order to work, the page needs to have access to a second HTML file called uccess. tml. Its purpose is to test the code. It Just needs four lines Success centre You entered all the data required Your assignment unwrap how this HTML code produces the form displayed in the browser (Fig. 1). 2. Describe how the JavaScript function performs the validation check. 3. Describe how the HTML calls the validation routine. 4. Add another text field to the form to take the users examination number. Extend the Javascript code to validate this field to run into authoritative that it is not left blank. Extend the Javascript code to make sure that the users examination number is xactly 4 digits.Produce evidence to show that you have planned, written and tried your code. 5. Add a set of radio buttons to the form to comport a level of entry such as GCSE, AS or A2. Write a function that displays the level of entry to the user in an alert box so that the level can be support or rejected. Produce evidence to show that you have planned, written and tested your code. 6. Produce an evaluation of your solutions. 7. Write a conclusion about the lastingness of JavaScript validation routines to reduce the number of errors that are made in data input. BLANK PAGE Copyright Information OCR is committed to seeking license to reproduce all third-party content that it uses in its assessment materials.

No comments:

Post a Comment