The purpose of this unit is to carry out a practical investigation of a topic chosen from a set of options supplied by OCR. In the course of the investigation, there will be an opportunity to look in depth at an aspect of computing 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 form 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 are not restricted to: practical investigations with hardware or software practical investigations with online resources Supplementary research may be required and resources may include: web-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 forms Many web sites collect information from people using forms. These forms can be put together using HTML form objects. The data entered is normally sent 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 validated in order to reduce the number of errors that occur. A lot of this validation can be carried out at the client end of the process. In other words, processing can be carried out by the browser. There are various ways in which this can be done. A common way is to write scripts that intercept the input data and check it before it is submitted to the server. There are various scripting languages that can be used to write the necessary validation routines. A popular example is JavaScript. Most browsers are able to interpret JavaScript.
JavaScript, Just like other elements of a web page, is best written using a plain text editor such as Notepad. Scripts can be embedded in a web page or saved separately as JavaScript files, using the extension Is. The web page can access these scripts when needed. Here is the starting point for a form that collects information about exam entries. File Edit View History Bookmarks Tools Help http://examentry. net Exam entry Exam Entry Form Name Subject Submit 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 code that lies behind the form and the JavaScript code that does the validation. function validateForm() { var result = true; if (document. ExamEntry. name. value=”) { msg+n’ou must enter your name
“; document. ExamEntry. name. focus(); document. getElementByld(‘name’). style. color=”red”; result = false; if (document. ExamEntry. subJect. value=”) { msg+n’ou must enter the subject
“; document. ExamEntry. subJect. focus(); document. getElementByld(‘subJect’). style. color=”red”; result = false; 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 message You entered all the data required Your assignment Describe 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 user’s examination number. Extend the Javascript code to validate this field to make sure that it is not left blank. Extend the Javascript code to make sure that the user’s examination number is xactly 4 digits.
Produce evidence to show that you have planned, written and tested your code. 5. Add a set of radio buttons to the form to accept 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 confirmed 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 effectiveness 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 permission to reproduce all third-party content that it uses in its assessment materials.
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.