Programming Languages <ul><li>All have… </li></ul><ul><ul><li>Variables, data types, assignment </li></ul></ul><ul><ul><li...
What is JavaScript? <ul><li>JavaScript is a programming/scripting language designed for the Web </li></ul><ul><li>Javascri...
JavaScript is  Object-Oriented <ul><li>JavaScript uses objects that have  attributes  and  methods </li></ul>bgColor is an...
JavaScript is typically used to enhance a Web interface http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/exampl...
JavaScript Embedded in HTML <ul><li>In the html <body> </li></ul>
JavaScript Embedded in HTML <ul><li>In the html <body> </li></ul>http://www.pic.fsu.edu/courses/wad/tutorials/javascript/e...
JavaScript Embedded in HTML <ul><li>In the html <head> </li></ul>http://www.pic.fsu.edu/courses/wad/tutorials/javascript/e...
Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables.html
Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables2.html
HTML Forms <ul><li>Javascript can collect user input through HTML forms. </li></ul>http://www.pic.fsu.edu/courses/wad/tuto...
Calling a function from a form http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder.html   http://w...
if – elseif - else http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/if_else.html
Upcoming SlideShare
Loading in...5
×

Javascript

3,758

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,758
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
61
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Javascript

  1. 2. Programming Languages <ul><li>All have… </li></ul><ul><ul><li>Variables, data types, assignment </li></ul></ul><ul><ul><li>Arithmetic, relational, and logical operators, and expressions </li></ul></ul><ul><ul><li>Control structure: if-then, while, loops, iteration </li></ul></ul><ul><ul><li>Program structure: functions, objects, methods </li></ul></ul><ul><ul><li>Arrays and strings </li></ul></ul><ul><ul><li>Input and Output </li></ul></ul>
  2. 3. What is JavaScript? <ul><li>JavaScript is a programming/scripting language designed for the Web </li></ul><ul><li>Javascript is interpreted not compiled </li></ul><ul><li>JavaScript is not Java </li></ul><ul><li>JavaScript provides interactivity for Web pages </li></ul><ul><li>JavaScript may be embedded in HTML or referenced from HTML (like CSS) </li></ul><ul><li>JavaScript is forgiving and easy to use </li></ul>
  3. 4. JavaScript is Object-Oriented <ul><li>JavaScript uses objects that have attributes and methods </li></ul>bgColor is an attribute of the document object document.bgColor=“#888888”; write is a method in the document object document.write(“Hello Earl!”); The DOM (Document Object Model)
  4. 5. JavaScript is typically used to enhance a Web interface http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/examples/mouseover2.html http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/coolmenu/ http://javascript.internet.com/toc.html http://sixrevisions.com/rapid-development/10_ajax_effects_website_fanciness/ Javascript is a key element in the popular AJAX programming methodology. Javascript code can reference Javascript libraries such as jQuery .
  5. 6. JavaScript Embedded in HTML <ul><li>In the html <body> </li></ul>
  6. 7. JavaScript Embedded in HTML <ul><li>In the html <body> </li></ul>http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/doc_write.html
  7. 8. JavaScript Embedded in HTML <ul><li>In the html <head> </li></ul>http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/function.html
  8. 9. Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables.html
  9. 10. Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables2.html
  10. 11. HTML Forms <ul><li>Javascript can collect user input through HTML forms. </li></ul>http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_objects.html http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/change_background.html http://www.w3schools.com/html/html_forms.asp
  11. 12. Calling a function from a form http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder.html http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder2.html v1 and v2 are two variables being passed into function add this.form.v1.value gets the value the user typed in the v1 textbox on the form in this document The button calls the function add when it is clicked (onclick)
  12. 13. if – elseif - else http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/if_else.html
  1. Gostou de algum slide específico?

    Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

×