• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

Unit 2 computer systems

Extracts from this document...

Introduction

Main features of JavaScript - P3 Browser Support Control Data Validation Detecting a Users OS or Browser Browser Support To access certain content you need to have the necessary plug-in, for example to access flash content, you need to install the flash plug-in in your browser. But to use JavaScript, you don't have to use any plug-in at all. This is because all browsers have accepted JavaScript as a scripting language and so they provide integrated support for it. Control A great feature of JavaScript is the control you have over the browser. There are various things you can control such as the background colour, this feature servers more than one purpose. Most people would change the colour of a webpage just because the option is there but it can also be a huge help for people who are visually impaired. Data Validation Being able to validate a users input is another great feature of JavaScript. Most websites will have a section where you may need to input some data (contact form, registration and more) and if you were to enter your name in a section that is expecting numeric input you will get an error message. ...read more.

Middle

Image on the right shows what happens when you enter an invalid email address, the image on the left shows what happens when you enter a valid email address. Timer Design: - Separate document. Create: Header <script type="text/javascript"> function timedText() { var t1=setTimeout("document.getElementById('txt').value='1 Min!'",60000); var t2=setTimeout("document.getElementById('txt').value='2 Mins!'",120000); var t3=setTimeout("document.getElementById('txt').value='3 Mins!'",240000); } </script> Form <form> <input type="button" value="Display timed text!" onclick="timedText()" /> <input type="text" id="txt" /> </form> Test: This screenshot shows the timer in action, after every minuet (up to three minuets) the timer shows a message telling you how long you have been on that page. Implementation of Web Page Scripts in Two Different Browsers - M3 Not all browsers are able to implement scripts the same and the sear amount of browsers (and versions) makes it really hard to create a web page around a specific browser. As soon as you load a page that contains JavaScript you can see the differences in implementation between IE and FF straight away, Internet Explorer requires confirmation from you before it runs the script, Firefox on the other hand loads it right away. Yes there are a few security issues with Firefox automatically running scripts but you should never run into serious trouble. ...read more.

Conclusion

Buttons - Everyone loves buttons, forward, back or even change the colour. Alerts - Messages that pops up to tell your visitors important information. Prompts - Like an Alert except they want input from you. Data Validation - Make sure your viewers input is correct by validating what's been entered. Clocks - It's always nice to know how much time you have wasted. Browser and OS detection - Simply shows you your OS and Browser info. Redirecting - This page no longer in use? No problem, redirect them to the new one. These are just a few example of how you would improve/create interactivity in your webpage. Below is an example of how you would change the background colour of your site, this not only adds the interactivity of the site but also helps people who have visual impairments, I chose red, green and white <form> <INPUT type="button" value="Change to Yellow!" name="button3" onClick="document.bgColor='green'"> <br> <INPUT type="button" value="Change to Red!" name="button4" onClick="document.bgColor='red'"> <br> <INPUT type="button" value="Change back!" name="button5" onClick="document.bgColor='white'"> </form> Evaluate the impact of using CSS to control layout - D3 changing the layout of a webpage using HTML and tables can be a pain, not every browser loads them the same and breaking can occur. Fortunately when CSS was introduced ?? ?? ?? ?? ...read more.

The above preview is unformatted text

This student written piece of work is one of many that can be found in our AS and A Level Computer Science section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Computer Science essays

  1. Marked by a teacher

    The systems development life cycle (SDLC) is a conceptual model used in project management ...

    3 star(s)

    This means a development environment, project management tools, etc. Finally DSDM also states that a supportive relationship between customer and vendor is required. This goes for both projects that are realized internally within companies or by outside contractors. An aid in DSDM Model Limitations * It is a relatively new model.

  2. Peer reviewed

    information systems assignment 2

    4 star(s)

    If these are not kept then the company can face large fines, financial penalties and legal action against them and loosing customers. Money is a real constraint when the data protection act is involved, the Rufus supermarket will have to spend more money in order to employ more staff to

  1. Control Unit, Memory Unit, and Arithmetic Logic Unit. The CPU or Central Processing ...

    this connects the musical keyboard to the processor and allows data to be passed between the instrument and the processor. b) Mouse. A mouse is a device designed to be used with a pointer on the screen. It is particularly useful because it mimics the natural human reaction of being able to point at something.

  2. Computing Project

    var FMLogin: TFMLogin; implementation uses Umenu; {$R *.dfm} procedure TFMLogin.BtnLoginClick(Sender: TObject); begin ADOUandPSetup.Open;//open the adouandpsetup if ADOUandPSetup.locate('username',(edusername.text),[]) and //if the contents of the field in the edusername is identical to that in the usernames and password table in the field named 'usernames' and ADOUandPSetup.locate('password',(edpass.text),[])// if the contents of the field

  1. Computer systems assignment 1

    a popular OS and it is free as well and let to distribute by people. The desktop is pretty much a window desktop and is also very intuitional. Linux OS supports dozens of programming languages which allows writing and coding in many ways.

  2. Business blue print document for the implementation of SAP R/3 (4.6B) payroll at Mastek ...

    - Applicable for Mastek 5. Tamil Nadu (Annual) - Applicable for Mastek 6. Kerala (Annual) - Not applicable for Mastek 7. Andhra Pradesh (Annual) - Not applicable for Mastek 2.0 UNITED STATES PAYROLL Introduction MASTEK Ltd. As part of its global exercise to synergize and unify business operations through SAP implementation wishes to utilize the SAP US Payroll component for calculating gross payroll of its employees.

  1. Computing Project

    The main reason for my proposal of this system is to ensure that the instructor does not continue double booking and not booking students at all. Currently at the end of a lesson the student asks for a booking and the instructor will look in his diary and book appropriately,

  2. Unit 10 Server-side scripting of web pages part 2

    is usually used for extra storage and buck ups. Integrated Drive Electronics (IDE) - Floppy drive, hard drive and the CD-ROM drive are all connect to the computer through an Integrated Drive Electronics (IDE) interface. An IDE interface is a standard way for a storage device to connect to a computer.

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work