CNIT 133 Interactive Web Pags – JavaScript and AJAX Popup Boxes.

Slides:



Advertisements
Similar presentations
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
Advertisements

 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
TIK-20 Computer and Information Science April 3, TIK20 - West Hill C.I. - Spring 2009.
HTML Forms JavaScript Introduction / Overview Lab Homework #1 CS 183 4/8/2010.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 8: JavaScript I.
WTP Unit 4 JavaScript and DHTML. Javascript: – Client side scripting, – What is Javascript, – How to develop Javascript, – Simple Javascript, – Variables,
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Lesson 8 Creating Forms with JavaScript
آموزش طراحی وب سایت جلسه دهم – جاوا اسکریپت 1 تدریس طراحی وب برای اطلاعات بیشتر تماس بگیرید تاو شماره تماس: پست الکترونیک :
Forms and Java script. Forms The graphical user interface -textbox, radio, button, textarea, checkbox… The processing script –CGI scripts, Perl script,
CNIT 133 Interactive Web Pags – JavaScript and AJAX Event and Event Handling.
VASP PREPAYMENT SYSTEM Training Module for CLIENTS.
Scripting Languages.
Using JavaScript in FORMs Fort Collins, CO Copyright © XTR Systems, LLC Learning to Use JavaScript in HTML FORMs Instructor: Joseph DiVerdi, Ph.D., MBA.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 3.
Javascript. Outline Introduction Fundamental of JavaScript Javascript events management DOM and Dynamic HTML (DHTML)
Objective Static vs. Dynamic Web pages. Variables. Assignments. JavaScript Hierarchy of Objects JavaScript Functions (prompt(“”,””) Document.write(“”)
Using Client-Side Scripts to Enhance Web Applications 1.
Client-Side Scripting JavaScript.  produced by Netscape for use within HTML Web pages.  built into all the major modern browsers. properties  lightweight,
1 / 9 Printing the Return Within TaxWise Online © 2006, Universal Tax Systems, Inc. All Rights Reserved. Printing the Return Within TaxWise Online Objectives.
JavaScript - A Web Script Language Fred Durao
CNIT 133 Interactive Web Pags – JavaScript and AJAX How to run JavaScript?
Copyright ©2005  Department of Computer & Information Science Introducing Dialogue Windows.
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
Variety of JavaScript Examples Please use speaker notes for additional information!
CIS 375—Web App Dev II JavaScript III. 2 The String Object A JS String is an object with properties and _________. For more info on JavaScript click here.
1 JavaScript
Input & Output Functions JavaScript is special from other languages because it can accept input and produce output on the basis of that input in the same.
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
1 JavaScript 2 JavaScript. 2 Rollovers Most web page developers first use JavaScript for rollovers A rollover is a change in the appearance of an element.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 8 Scott Marino.
JavaScript, Fourth Edition
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
Conditional Statements © Copyright 2014, Fred McClurg All Rights Reserved.
COMP403 Web Design JAVA SCRİPTS Tolgay KARANFİLLER.
1 Chapter 3 – JavaScript Outline Introduction Flowcharts Control Structures if Selection Structure if/else Selection Structure while Repetition Structure.
Making dynamic pages with javascript Lecture 1. Java script java versus javascript Javascript is a scripting language that will allow you to add real.
JavaScript Challenges Answers for challenges
Chapter 12: Objects CIS 275—Web Application Development for Business I.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Variables.
Pertemuan 5 IT133 Pengembangan Web JavaScript. What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting.
CIS 3.5 Lecture 2.3 "Introduction to JavaScript".
Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing a Line of Text in a Web Page 7.3 Another JavaScript.
In God we trust Learning Java Script. Java Script JavaScript is the scripting language of the Web! JavaScript is used in millions of Web pages to improve.
HTML DOM Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Chapter 5: Intro to Scripting CIS 275—Web Application Development for Business I.
Working with the Window Object JavaScript considers the browser window an object, which it calls the window object.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
1 /25 Working with Return Templates with TaxWise Online © 2006, Universal Tax Systems, Inc. All Rights Reserved. TaxWise Online Return Templates Objectives.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
Chapter 6 Controlling Program Flow with Looping Structures.
WEB SYSTEMS & TECHNOLOGY. Java Script  JavaScript created by Netscape  It is also client side programming  It can be use for client side checks.
JavaScript, Third Edition 1 SELECTION LIST Demo. JavaScript, Third Edition 2 Description This web page will edit the slection to ensure an option was.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Third lecture Event 27/2/2016 JavaScript Tutorial.
CHAPTER 10 JAVA SCRIPT.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Pertemuan 7 JavaScript.
JavaScript (JS) Basics
WEB APPLICATION PROGRAMMING
Javascript Short Introduction By Thanawat Varintree,
Predefined Dialog Boxes
WEB PROGRAMMING JavaScript.
My First Web Page document.write("" + Date() + ""); To insert.
CS105 Introduction to Computer Concepts
Web Programming– UFCFB Lecture 13
CS105 Introduction to Computer Concepts JavaScript
Presentation transcript:

CNIT 133 Interactive Web Pags – JavaScript and AJAX Popup Boxes

Agenda My Web Site: (download syllabus, class notes). Alert box Confirm box Prompt box

Alert box To display message to the user. The user will have to click “ok” to proceed. alert box alert("Hello again! This is how we" + '\n' + "add line break to an alert box!");

Confirm box Is used if you want the user to verify or accept something. The user will have to click either “ok” or “cancel” to proceed. If the user clicks “ok”, the box returns true, if the user clicks “cancel”, the box returns false.

Confirm box (continue…) confirm box var name=confirm("Press a button") if (name==true) { document.write("You pressed the OK button!") } else { document.write("You pressed the Cancel button!") }

Prompt box Is often used if you want the user to input a value before entering a page. The user will have to click either “ok” or “cancel” to proceed after entering an input value. If the user clicks “ok”, the box returns the input value as string data type. If the user clicks “cancel”, the box returns null.

Prompt box (continue…) prompt box var name=prompt("Please enter your name",""); if (name.length > 0) { document.write("Hello " + name + "! How are you today?"); } else { document.write("Hello UNKNOWN! How are you today? “); }