• Like
  • Save
8. java script
Upcoming SlideShare
Loading in...5
×
Uploaded on

JSP (Java Server Pages) Lecture # 8 …

JSP (Java Server Pages) Lecture # 8
Struts the most special parts and very easy part of the JSP language and the framework of jsp, Very east lecture

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
160
On Slideshare
0
From Embeds
0
Number of Embeds
6

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. IMRAN DAUDFOUNDATION UNIVERSITYINSTITUTE OF MANAGEMENT ANDCOMPUTER SCIENCESImran DaudFUIMCSWeb EngineeringJavaScript
  • 2.  Java Script can be used in following two differentways: Within html code In separate file (file.js)
  • 3. Html Code and JavaScript
  • 4. JavaScript file
  • 5. Datatypes Three Core data types Integer String Boolean In addition to basic types we have Null undefined
  • 6. String String can be handled in single or double quotes. Example:
  • 7. Declaring and initializing variables
  • 8. Dialog Boxes Ask question get answers and respond using windowbased messages dialog boxes. Three methods Alert()  alert(String) Prompt()  prompt(text, value) Confirm()  confirm(message)
  • 9. Condition and loops If – else statement Switch Loops  for , while, do while
  • 10. Functions
  • 11. Function with argument
  • 12. Associating Function with form field Any functionality can be associated with any formfield. E.g. <input type="text" id="input" value="" onchange="err()"/>
  • 13. Objects in Script
  • 14. Associating Function with Object
  • 15. Array and Date
  • 16. Accessing Form Fields
  • 17. Forms
  • 18. Example
  • 19. Example
  • 20. Reference JavaScript By example 2nd Edition by Ellie Quigley