JavaScript Framework: AngularJS

Size: px
Start display at page:

Download "JavaScript Framework: AngularJS"

Transcription

1 บทท 8 JavaScript Framework: AngularJS ว ชา เทคโนโลย เว บ (รห สว ชา )

2 ว ตถ ประสงค การเร ยนร เพ อให ผ เร ยนม ความร ความเข าใจเก ยวก บ JavaScript Framework: AngularJS เพ อให ผ เร ยนสามารถนาเสนอการดาเน นงานเก ยวก บ JavaScript Framework: AngularJS เบ องต นได

3 ห วข อ บทนา (Overview) Expressions Modules Directives Model Data Binding Controllers Filters Events SQL Routing Application สร ป (Summary)

4 บทนา (Overview) AngularJS is a JavaScript framework. It can be added to an HTML page with a <script> tag. AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions. ท มา:

5 AngularJS is a JavaScript Framework AngularJS is a JavaScript framework. It is a library written in JavaScript. AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag: <script src=" angular.min.js"></script>

6 AngularJS Extends HTML AngularJS extends HTML with ng-directives. The ng-app directive defines an AngularJS application. The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. The ng-bind directive binds application data to the HTML view. <!DOCTYPE html> <html> <script src=" rjs/1.6.4/angular.min.js"></script> <body> <div ng-app=""> <p>name: <input type="text" ng-model="name"></p> <p ng-bind="name"></p> </div> </body> </html> ท มา:

7 AngularJS Extends HTML (ต อ) AngularJS starts automatically when the web page has loaded. The ng-app directive tells AngularJS that the <div> element is the "owner" of an AngularJS application. The ng-model directive binds the value of the input field to the application variable name. The ng-bind directive binds the innerhtml of the <p> element to the application variable name.

8 AngularJS Directives As you have already seen, AngularJS directives are HTML attributes with an ng prefix. The ng-init directive initializes AngularJS application variables. <div ng-app="" ng-init="firstname='john'"> <p>the name is <span ng-bind="firstname"></span></p> </div>

9 AngularJS Expressions AngularJS expressions are written inside double braces: {{ expression }}. AngularJS will "output" data exactly where the expression is written: <div ng-app=""> <p>my first expression: {{ }}</p> </div>

10 AngularJS Expressions (ต อ) AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive. <div ng-app=""> <p>name: <input type="text" ng-model="name"></p> <p>{{name}}</p> </div

11 AngularJS Applications AngularJS modules define AngularJS applications. AngularJS controllers control AngularJS applications. ng-app directive defines the application ng-controller directive defines the controller <div ng-app="myapp" ng-controller="myctrl"> First Name: <input type="text" ng-model="firstname"><br> Last Name: <input type="text" ng-model="lastname"><br> <br> Full Name: {{firstname + " " + lastname}} </div> <script> var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.firstname= "John"; $scope.lastname= "Doe"; }); </script> ท มา:

12 AngularJS Model The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. The ng-model Directive Two-Way Binding <div ng-app="myapp" ng-controller="myctrl"> Name: <input ng-model="name"> </div> <script> var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.name = "John Doe"; }); </script> <div ng-app="myapp" ng-controller="myctrl"> Name: <input ng-model="name"> <h1>you entered: {{name}}</h1> </div>

13 AngularJS Data Binding Data binding in AngularJS is the synchronization between the model and the view. Data Model HTML View var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.firstname = "John"; $scope.lastname = "Doe"; }); <p ng-bind="firstname"></p> <p>first name: {{firstname}}</p> <div ng-app="myapp" ng-controller="myctrl"> Name: <input ng-model="firstname"> <h1>{{firstname}}</h1> </div> ท มา:

14 AngularJS Controllers AngularJS applications are controlled by controllers. The ng-controller directive defines the application controller. A controller is a JavaScript Object, created by a standard JavaScript object constructor. <div ng-app="myapp" ng-controller="personctrl"> First Name: <input type="text" ng-model="firstname"><br> Last Name: <input type="text" ng-model="lastname"><br> <br> Full Name: {{fullname()}} </div> <script> var app = angular.module('myapp', []); app.controller('personctrl', function($scope) { $scope.firstname = "John"; $scope.lastname = "Doe"; $scope.fullname = function() { return $scope.firstname + " " + $scope.lastname; }; }); </script> ท มา:

15 AngularJS Controllers : Controllers In External Files <div ng-app="myapp" ng-controller="namesctrl"> <ul> <li ng-repeat="x in names"> {{ x.name + ', ' + x.country }} </li> </ul> </div> <script src="namescontroller.js"></script> angular.module('myapp', []).controller('namesctrl', function($scope) { $scope.names = [ {name:'jani',country:'norway'}, {name:'hege',country:'sweden'}, {name:'kai',country:'denmark'} ]; });

16 AngularJS Scopes The scope is the binding part between the HTML (view) and the JavaScript (controller). The scope is an object with the available properties and methods. The scope is available for both the view and the controller. <div ng-app="myapp" ng-controller="myctrl"> <h1>{{carname}}</h1> </div> <script> var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.carname = "Volvo"; }); </script>

17 AngularJS Scopes (ต อ) scope are dealing with, at any time When dealing with the ng-repeat directive, each repetition has access to the current repetition object: <div ng-app="myapp" ng-controller="myctrl"> <ul> <li ng-repeat="x in names">{{x}}</li> </ul> </div> <script> var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.names = ["Emil", "Tobias", "Linus"]; }); </script>

18 AngularJS Filters AngularJS provides filters to transform data: currency Format a number to a currency format. date Format a date to a specified format. filter Select a subset of items from an array. json Format an object to a JSON string. limitto Limits an array/string, into a specified number of elements/characters. lowercase Format a string to lower case. number Format a number to a string. orderby Orders an array by an expression. uppercase Format a string to upper case. ท มา:

19 AngularJS Filters (ต อ) Adding Filters to Expressions <div ng-app="myapp" ng-controller="personctrl"> <p>the name is {{ lastname uppercase }}</p> </div> Adding Filters to Directives <div ng-app="myapp" ng-controller="namesctrl"> <ul> <li ng-repeat="x in names orderby:'country'"> {{ x.name + ', ' + x.country }} </li> </ul> </div>

20 AngularJS Filters (ต อ) Filter an Array Based on User Input

21 AngularJS Services The $location service has methods which return information about the location of the current web page The $http service makes a request to the server, and lets your application handle the response. $timeout service $interval Service Create Your Own Service var app = angular.module('myapp', []); app.controller('customersctrl', function($scope, $location) { $scope.myurl = $location.absurl(); }); var app = angular.module('myapp', []); app.controller('myctrl', function($scope, $http) { $http.get("welcome.htm").then(function (response) { $scope.mywelcome = response.data; }); });

22 AngularJS AJAX - $http AngularJS $http The AngularJS $http service makes a request to the server, and returns a response. Methods There are several shortcut methods:.delete().get() Properties.head() The response from the server is an object with these properties:.jsonp().config the object used to generate the request..patch().data a string, or an object, carrying the response from the server..post().headers a function to use to get header information..put().status a number defining the HTTP status..statustext a string defining the HTTP status. ท มา:

23 JSON <div ng-app="myapp" ngcontroller="customersctrl"> <ul> <li ng-repeat="x in mydata"> {{ x.name + ', ' + x.country }} </li> </ul> </div> <script> The data you get from the response is expected to be in JSON format. JSON is a great way of transporting data, and it is easy to use within AngularJS, or any other JavaScript. var app = angular.module('myapp', []); app.controller('customersctrl', function($scope, $http) { $http.get("customers.php").then(function(response ) { $scope.mydata = response.data.records; }); }); </script> [customers.php]

24 AngularJS SQL AngularJS is perfect for displaying data from a Database. Just make sure the data is in JSON format. <div ng-app="myapp" ng-controller="customersctrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.name }}</td> <td>{{ x.country }}</td> </tr> </table> </div> <script> var app = angular.module('myapp', []); app.controller('customersctrl', function($scope, $http) { $http.get("customers_mysql.php").then(function (response) {$scope.names = response.data.records;}); }); </script>

25 Server Code PHP and MySQL <?php header("access-control-allow-origin: *"); header("content-type: application/json; charset=utf-8"); $conn = new mysqli("myserver", "myuser", "mypassword", "Northwind"); $result = $conn->query("select CompanyName, City, Country FROM Customers"); $outp = ""; while($rs = $result->fetch_array(mysqli_assoc)) { if ($outp!= "") {$outp.= ",";} $outp.= '{"Name":"'. $rs["companyname"]. '",'; $outp.= '"City":"'. $rs["city"]. '",'; $outp.= '"Country":"'. $rs["country"] } $outp ='{"records":['.$outp.']}'; $conn->close(); echo($outp);?> ** บาง server อาจม การกาหนดค าไว แล ว สามารถละไว ได **. '"}';

26 AngularJS Events AngularJS has its own HTML events directives. ng-blur ng-change ng-click ng-copy ng-cut ng-dblclick ng-focus ng-keydown ng-keypress ng-keyup ng-mousedown ng-mouseenter ng-mouseleave ng-mousemove ng-mouseover ng-mouseup ng-paste

27 AngularJS Events Add mouse events on any HTML element <div ng-app="myapp" ng-controller="myctrl"> <h1 ng-mousemove="count = count + 1">Mouse over me!</h1> <h2>{{ count }}</h2> </div> <script> var app = angular.module('myapp', []); app.controller('myctrl', function($scope) { $scope.count = 0; }); </script>

28 AngularJS Routing The ngroute module helps your application to become a Single Page Application. The ngroute module routes you r application to different pages without reloading the entire application. <body ng-app="myapp"> <p><a href="#/!">main</a></p> <a href="#!red">red</a> <a href="#!green">green</a> <a href="#!blue">blue</a> <div ng-view></div> <script> var app = angular.module("myapp", ["ngroute"]); app.config(function($routeprovider) { $routeprovider.when("/", { templateurl : "main.htm" }).when("/red", { templateurl : "red.htm" }).when("/green", { templateurl : "green.htm" }).when("/blue", { templateurl : "blue.htm" }); }); </script> </body>

29 AngularJS Routing (ต อ) To make your applications ready for routing, you must include the AngularJS Route module <script src=" Then you must add the ngroute as a dependency in the application module var app = angular.module("myapp", ["ngroute"]);

30 AngularJS Routing (ต อ) Use the $routeprovider to configure different routes in your application Applications can only have one ng-view directive, and this will be the placeholder for all views provided by the route.

31 AngularJS Application: It is time to create a real AngularJS Application. Make a Shopping List Todo

32 สร ป (Summary) ศ กษาและเร ยนร เก ยวก บ AngularJS ด งน Expressions Modules Directives Model Data Binding Controllers Filters Events SQL Routing Application

33 แบบฝ กปฏ บ ต กาหนดให สร างเว บไซต เพ อประย กต ใช AngularJS และสามารถทางาน ร วมก บ Server Code (PHP) เช น การจ ดเก บลงฐานข อม ล การอ าน ข อม ล การค นหาข อม ล หร อการดาเน นการอ น ๆ ตามความเหมาะสม โดยกาหนดให 1 คนต อ 1 เว บไซต (พ ฒนาอย างน อย 1 ฟ งก ช นงาน)

34 เอกสารอ างอ ง AngularJS JavaScript MVW Framework (Online), Available at: AngularJS Tutorial (Online), Available at:

What is AngularJS. à Javascript Framework à MVC à for Rich Web Application Development à by Google

What is AngularJS. à Javascript Framework à MVC à for Rich Web Application Development à by Google AngularJS What is AngularJS à Javascript Framework à MVC à for Rich Web Application Development à by Google Why AngularJS Other frameworks deal with HTML s shortcomings by either abstracting away HTML,

More information

Creating Effective Websites using AngularJS

Creating Effective Websites using AngularJS Creating Effective Websites using AngularJS Brandon Mota Abstract Websites provide an effective form of displaying information. However, the site itself has to be designed in such a way to accurately and

More information

MT7049 การออกแบบและฐานข อม ลบนเว บ

MT7049 การออกแบบและฐานข อม ลบนเว บ MT7049 การออกแบบและฐานข อม ลบนเว บ 3 (2-2-5) Web Design and Web Database ส พจน เฮงพระพรหม http://home.npru.ac.th/supoj คาอธ บายรายว ชา แนวค ดองค ประกอบของเว บ หล กการออกแบบเว บ การว เคราะห เน อหา การออกแบบโครงสร

More information

Getting Started with

Getting Started with Getting Started with Meganadha Reddy K. Technical Trainer NetCom Learning www.netcomlearning.com Agenda How websites work Introduction to JavaScript JavaScript Frameworks Getting Started : Angular JS Q&A

More information

AngularJS AN INTRODUCTION. Introduction to the AngularJS framework

AngularJS AN INTRODUCTION. Introduction to the AngularJS framework AngularJS AN INTRODUCTION Introduction to the AngularJS framework AngularJS Javascript framework for writing frontend web apps DOM manipulation, input validation, server communication, URL management,

More information

AngularJS. Beginner's guide - part 1

AngularJS. Beginner's guide - part 1 AngularJS Beginner's guide - part 1 AngularJS: 2 AngularJS: Superheroic JavaScript MVW Framework 3 AngularJS: Superheroic JavaScript MVW Framework 4 AngularJS: Superheroic JavaScript MVW Framework Javascript

More information

a Very Short Introduction to AngularJS

a Very Short Introduction to AngularJS a Very Short Introduction to AngularJS Lecture 11 CGS 3066 Fall 2016 November 8, 2016 Frameworks Advanced JavaScript programming (especially the complex handling of browser differences), can often be very

More information

AngularJS Examples pdf

AngularJS Examples pdf AngularJS Examples pdf Created By: Umar Farooque Khan 1 Angular Directive Example This AngularJS Directive example explain the concept behind the ng-app, ng-model, ng-init, ng-model, ng-repeat. Directives

More information

Unit V- Client and Server Side Frameworks

Unit V- Client and Server Side Frameworks Web Technology Unit V- Client and Server Side Frameworks By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference

More information

AngularJS. Beginner's guide - part 2

AngularJS. Beginner's guide - part 2 AngularJS Beginner's guide - part 2 Summary of the previous lesson 1. To add AngularJS to an empty page: a) Download the script angular.js from https://angularjs.org/ b) Link it in the header

More information

ISI Web of Science. SciFinder Scholar. PubMed ส บค นจากฐานข อม ล

ISI Web of Science. SciFinder Scholar. PubMed ส บค นจากฐานข อม ล 2.3.3 Search Chem. Info. in Journal ส บค นจากฐานข อม ล - ฐานข อม ลท รวบรวมข อม ลของ journal จากหลาย ๆ แหล ง ISI http://portal.isiknowledge.com/portal.cgi/ SciFinder ต องต ดต งโปรแกรมพ เศษ และสม ครสมาช

More information

HTML DOM IN ANGULARJS

HTML DOM IN ANGULARJS HTML DOM IN ANGULARJS The AngularJS provides directives for binding application data to the HTML DOM element s attribute. These are the HTML DOM attributes used in AngularJS. o Show as ng-show directive.

More information

Tim Roes. Android- & inovex in Karlsruhe. GDG Karlsruhe Co-Organizer.

Tim Roes. Android- & inovex in Karlsruhe. GDG Karlsruhe Co-Organizer. AngularJS Workshop Tim Roes Android- & Web-Developer @ inovex in Karlsruhe GDG Karlsruhe Co-Organizer www.timroes.de/+ Matthias Reuter Web-Developer @ inovex in Karlsruhe @gweax Multipage Application

More information

Design and Implementation of Single Page Application Based on AngularJS

Design and Implementation of Single Page Application Based on AngularJS Design and Implementation of Single Page Application Based on AngularJS 1 Prof. B.A.Khivsara, 2 Mr.Umesh Khivsara 1 Assistant Prof., 2 Website Developer 1 Department of Computer Engineering, 2 UKValley

More information

AngularJS Step By Step Tutorials. $interval([function], [delaytime], [count], [invokeapply], [parameter]);

AngularJS Step By Step Tutorials. $interval([function], [delaytime], [count], [invokeapply], [parameter]); $interval SERVICE IN ANGULARJS The $interval is an AngularJS service used to call a function continuously on a specified time interval. The $interval service similar to $timeout service but the difference

More information

AngularJS Introduction

AngularJS Introduction AngularJS Introduction Mendel Rosenblum AngularJS JavaScript framework for writing web applications Handles: DOM manipulation, input validation, server communication, URL management, etc. Considered opinionated

More information

แผนการสอนว ชา การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559

แผนการสอนว ชา การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559 แผนการสอนว ชา 01076235 การเข ยนโปรแกรมคอมพ วเตอร 2 (Computer Programming 2) ภาคการศ กษา 1 ป การศ กษา 2559 ค าอธ บายรายว ชา หล กการโปรแกรมเช งว ตถ เมธอด คลาส การซ อนสารสนเทศและการส บทอด อ ลกอร ท มพ นฐานการเร

More information

JSON POST WITH PHP IN ANGULARJS

JSON POST WITH PHP IN ANGULARJS JSON POST WITH PHP IN ANGULARJS The POST method is used to insert the data. In AngularJS, we should post the form data in JSON format to insert into the PHP file. The PHP server side code used to get the

More information

C Programming

C Programming 204216 -- C Programming Chapter 9 Character Strings Adapted/Assembled for 204216 by Areerat Trongratsameethong A First Book of ANSI C, Fourth Edition Objectives String Fundamentals Library Functions Input

More information

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II http://www.tutorialspoint.com ANGULARJS - MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to AngularJS Framework. You can download these sample mock tests

More information

เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด

เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด เคร องว ดระยะด วยแสงเลเซอร แบบม อถ อ ย ห อ Leica DISTO ร น D110 (Bluetooth Smart) ประเทศสว ตเซอร แลนด 1. ค ณล กษณะ 1.1 เป นเคร องว ดระยะทางด วยแสงเลเซอร แบบม อถ อ 1.2 ความถ กต องในการว ดระยะทางไม เก น

More information

3 Days Training Program

3 Days Training Program 3 Days Training Program What is AngularJS? A JavaScript framework for creating dynamic web applications Open Source GitHub: https://github.com/angular/angular.js MIT License Uses jquery jquery 1.7.1 or

More information

Chapter 3 Outline. Relational Model Concepts. The Relational Data Model and Relational Database Constraints Database System 1

Chapter 3 Outline. Relational Model Concepts. The Relational Data Model and Relational Database Constraints Database System 1 Chapter 3 Outline 204321 - Database System 1 Chapter 3 The Relational Data Model and Relational Database Constraints The Relational Data Model and Relational Database Constraints Relational Model Constraints

More information

C Programming

C Programming 204216 -- C Programming Chapter 5 Repetition Adapted/Assembled for 204216 by Areerat Trongratsameethong Objectives Basic Loop Structures The while Statement Computing Sums and Averages Using a while Loop

More information

ว ธ การต ดต ง Symantec Endpoint Protection

ว ธ การต ดต ง Symantec Endpoint Protection ว ธ การต ดต ง Symantec Endpoint Protection 1. Download File ส าหร บการต ดต ง 2. Install Symantec Endpoint Protection Manager 3. Install License 4. Install Symantec Endpoint Protection Client to Server

More information

Nagaraju Bende

Nagaraju Bende AngularJS Nagaraju Bende Blog Twitter @nbende FaceBook nbende http://angularjs.org Agenda Introduction to AngularJS Pre-Requisites Why AngularJS Only Getting Started MV* pattern of AngularJS Directives,

More information

Broken Characters Identification for Thai Character Recognition Systems

Broken Characters Identification for Thai Character Recognition Systems Broken Characters Identification for Thai Character Recognition Systems NUCHAREE PREMCHAISWADI*, WICHIAN PREMCHAISWADI* UBOLRAT PACHIYANUKUL**, SEINOSUKE NARITA*** *Faculty of Information Technology, Dhurakijpundit

More information

AJAX เสถ ยร ห นตา ส าน กเทคโนโลย สารสนเทศและการส อสาร มหาว ทยาล ยนเรศวร พะเยา

AJAX เสถ ยร ห นตา ส าน กเทคโนโลย สารสนเทศและการส อสาร มหาว ทยาล ยนเรศวร พะเยา AJAX เสถ ยร ห นตา ส าน กเทคโนโลย สารสนเทศและการส อสาร มหาว ทยาล ยนเรศวร พะเยา 1 Ajax ( Asynchronous JavaScript and XML ) Ajax ค ออะไร JavaScript DHTML = Dynamic HTML XML = Extensive Markup Language Css

More information

Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut. Operating System Concepts 8 th Edition,

Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut. Operating System Concepts 8 th Edition, Chapter 9: Virtual-Memory Management Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 9: Virtual-Memory Management Background Demand Paging Copy-on-Write Page Replacement Allocation of

More information

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. AngularJS

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. AngularJS I AngularJS About the Tutorial AngularJS is a very powerful JavaScript library. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive

More information

Frontend Frameworks. SWE 432, Fall 2016 Design and Implementation of Software for the Web

Frontend Frameworks. SWE 432, Fall 2016 Design and Implementation of Software for the Web Frontend Frameworks SWE 432, Fall 2016 Design and Implementation of Software for the Web Today How do we build a single page app without dying? MVC/MVVM (AngularJS) For further reading: Book: Learning

More information

ANGULARJS INTERVIEW QUESTIONS

ANGULARJS INTERVIEW QUESTIONS ANGULARJS INTERVIEW QUESTIONS http://www.tutorialspoint.com/angularjs/angularjs_interview_questions.htm Copyright tutorialspoint.com Dear readers, these AngularJS Interview Questions have been designed

More information

The New Effective Tool for Data Migration from Old PACS (Rogan) to New PACS (Fuji Synapse) with Integrated Thai Patient Names

The New Effective Tool for Data Migration from Old PACS (Rogan) to New PACS (Fuji Synapse) with Integrated Thai Patient Names The New Effective Tool for Data Migration from Old PACS (Rogan) to New PACS (Fuji Synapse) with Integrated Thai Patient Names Thanongchai Siriapisith MD*, Trongtum Tongdee MD* * Department of Radiology,

More information

I/O. Output. Input. Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส Scanner. standard input. standard output. standard err. command line file.

I/O. Output. Input. Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส Scanner. standard input. standard output. standard err. command line file. I/O and Exceptions I/O Input standard input keyboard (System.in) command line file Output standard output Screen (System.out) standard err file System.err Input ของจาวา จะเป น stream จะอ าน stream ใช คลาส

More information

Today Topics. Artificial Intelligent??? Artificial Intelligent??? Intelligent Behaviors. Intelligent Behavior (Con t) 20/07/52

Today Topics. Artificial Intelligent??? Artificial Intelligent??? Intelligent Behaviors. Intelligent Behavior (Con t) 20/07/52 Today Topics Artificial Intelligent Applications Opas Wongtaweesap (Aj OaT) Intelligent Information Systems Development and Research Laboratory Centre Faculty of Science, Silpakorn University Webpage :

More information

Lab 10: Structs and Enumeration

Lab 10: Structs and Enumeration Lab 10: Structs and Enumeration There is one more way to create your own value types in C#. You can use the struct keyword. A struct (short for structure) can have its own fields, methods, and constructors

More information

SEARCH STRATEGIES KANOKWATT SHIANGJEN COMPUTER SCIENCE SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITY OF PHAYAO

SEARCH STRATEGIES KANOKWATT SHIANGJEN COMPUTER SCIENCE SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITY OF PHAYAO SEARCH STRATEGIES KANKWATT SHIANGJEN CMPUTER SCIENCE SCHL F INFRMATIN AND CMMUNICATIN TECHNLGY UNIVERSITY F PHAYA Search Strategies Uninformed Search Strategies (Blind Search): เป นกลย ทธ การ ค นหาเหม

More information

INPUT Input point Measuring cycle Input type Disconnection detection Input filter

INPUT Input point Measuring cycle Input type Disconnection detection Input filter 2 = TEMPERATURE CONTROLLER PAPERLESS RECORDER หน าจอเป น Touch Sceen 7-Inch LCD เก บข อม ลผ าน SD Card และ USB Memory ร บ Input เป น TC/RTD/DC Voltage/DC Current ร บ Input 6 Channel ช วงเวลาในการอ านส

More information

บทท 4 ข นตอนการทดลอง

บทท 4 ข นตอนการทดลอง บทท 4 ข นตอนการทดลอง ในบทน จะท าการทดลองในส วนของซ นเซอร ว ดอ ณหภ ม เพ อผลท ได มาใช ในการเข ยน โปรแกรมและท าโครงงานให ได ประส ทธ ภาพข น 4.1 การทดสอบระบบเซ นเซอร ว ตถ ประสงค การทดลอง ว ตถ ประสงค ของการทดลองน

More information

Single Page Applications using AngularJS

Single Page Applications using AngularJS Single Page Applications using AngularJS About Your Instructor Session Objectives History of AngularJS Introduction & Features of AngularJS Why AngularJS Single Page Application and its challenges Data

More information

Crystal Report & Crystal Server 2016

Crystal Report & Crystal Server 2016 Crystal Report & Crystal Server 206 Crystal Report เป นเคร องม อในการสร าง Report ท ม จ ดเด นในความสามารถเช อมต อฐานข อม ลท หลากหลาย เพ อนำา เอาข อม ลมาใช สร างรายงานสำาหร บการใช งานท วไปในงานธ รก จ ประจำาว

More information

Verified by Visa Activation Service For Cardholder Manual. November 2016

Verified by Visa Activation Service For Cardholder Manual. November 2016 Verified by Visa Activation Service For Cardholder Manual November 2016 Table of Contents Contents Registration for Card Holder verification on ACS... 3 1. Direct Activation... 4 2. Changing personal information

More information

Chapter 4. Introducing Oracle Database XE 11g R2. Oracle Database XE is a great starter database for:

Chapter 4. Introducing Oracle Database XE 11g R2. Oracle Database XE is a great starter database for: Oracle Database XE is a great starter database for: Chapter 4 Introducing Oracle Database XE 11g R2 Developers working on PHP, Java,.NET, XML, and Open Source applications DBAs who need a free, starter

More information

JavaScript and Events

JavaScript and Events JavaScript and Events CS 4640 Programming Languages for Web Applications [Robert W. Sebesta, Programming the World Wide Web Jon Duckett, Interactive Frontend Web Development] 1 Events Interactions create

More information

AngularJS Fundamentals

AngularJS Fundamentals AngularJS Fundamentals by Jeremy Zerr Blog: http://www.jeremyzerr.com LinkedIn: http://www.linkedin.com/in/jrzerr Twitter: http://www.twitter.com/jrzerr What is AngularJS Open Source Javascript MVC/MVVM

More information

EXPRESSIONS IN ANGULARJS

EXPRESSIONS IN ANGULARJS EXPRESSIONS IN ANGULARJS AngularJS expressions are used to bind data in HTML. AngularJS execute the expressions and return the values where the expression is defined. AngularJS expressions are same as

More information

Web Application Development

Web Application Development Web Application Development Produced by David Drohan (ddrohan@wit.ie) Department of Computing & Mathematics Waterford Institute of Technology http://www.wit.ie INTRODUCTION & TERMINOLOGY PART 1 Objec8ves

More information

CPE 426 Computer Networks. Chapter 5: Text Chapter 23: Support Protocols

CPE 426 Computer Networks. Chapter 5: Text Chapter 23: Support Protocols CPE 426 Computer Networks Chapter 5: Text Chapter 23: Support Protocols 1 TOPICS สร ปเร อง IP Address Subnetting Chapter 23: Supporting Protocols ARP: 23.1-23.7 ใช ส าหร บหา HW Address(MAC Address) ICMP:

More information

Lecture Outline. 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration

Lecture Outline. 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration Semantic Web Lecture Outline 1. Semantic Web Technologies 2. A Layered Approach 3. Data Integration Semantic Web Technologies Explicit Metadata Ontologies Logic and Inference Agents 3 On HTML Web content

More information

The Clustering Technique for Thai Handwritten Recognition

The Clustering Technique for Thai Handwritten Recognition The Clustering Technique for Thai Handwritten Recognition Ithipan Methasate, Sutat Sae-tang Information Research and Development Division National Electronics and Computer Technology Center National Science

More information

Intro to SPA framework. Modified from a presenta6on by Jussi Pohjolainen

Intro to SPA framework. Modified from a presenta6on by Jussi Pohjolainen Intro to SPA framework Modified from a presenta6on by Jussi Pohjolainen Rise of the Responsive Single Page App Image: hbp://johnpolacek.github.io/scrolldeck.js/decks/responsive/ Responsive Unified across

More information

Looking forward to a successful coopertation : TEIN

Looking forward to a successful coopertation : TEIN Space Krenovation Park : SKP Looking forward to a successful coopertation : TEIN Geo-Informatics and Space Technology Development Agency : GISTDA Space Krenovation Park @ Chonburi 1 Mission TC/TM House

More information

input[datetime-local] DIRECTIVE IN ANGULARJS

input[datetime-local] DIRECTIVE IN ANGULARJS input[datetime-local] DIRECTIVE IN ANGULARJS input [datetime-local] is one of the AngularJS input directive in module ng. AnguarJS directive input [datetime-local] is used to create an HTML input with

More information

Web Development and HTML. Shan-Hung Wu CS, NTHU

Web Development and HTML. Shan-Hung Wu CS, NTHU Web Development and HTML Shan-Hung Wu CS, NTHU Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 2 Outline How does Internet Work? Web

More information

Introduction to AngularJS

Introduction to AngularJS CHAPTER 1 Introduction to AngularJS Google s AngularJS is an all-inclusive JavaScript model-view-controller (MVC) framework that makes it very easy to quickly build applications that run well on any desktop

More information

Fundamentals of Database Systems

Fundamentals of Database Systems 204222 - Fundamentals of Database Systems Chapter 24 Database Security Adapted for 204222 by Areerat Trongratsameethong Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Outline

More information

IS311 Programming Concepts 2/59. AVA Exception Handling Jการจ ดการส งผ ดปรกต

IS311 Programming Concepts 2/59. AVA Exception Handling Jการจ ดการส งผ ดปรกต 1 IS311 Programming Concepts 2/59 AVA Exception Handling Jการจ ดการส งผ ดปรกต 2 Introduction Users have high expectations for the code we produce. Users will use our programs in unexpected ways. Due to

More information

Graphics Design and Applied Arts บทท 6 การออกแบบเว บเบ องต น

Graphics Design and Applied Arts บทท 6 การออกแบบเว บเบ องต น 344-282 Graphics Design and Applied Arts บทท 6 การออกแบบเว บเบ องต น Review of Web Technology Millions of web surfers who could potentially view our site have a wide variety of computer systems, then Colors

More information

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

Tizen Web UI Technologies (Tizen Ver. 2.3)

Tizen Web UI Technologies (Tizen Ver. 2.3) Tizen Web UI Technologies (Tizen Ver. 2.3) Spring 2015 Soo Dong Kim, Ph.D. Professor, Department of Computer Science Software Engineering Laboratory Soongsil University Office 02-820-0909 Mobile 010-7392-2220

More information

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Web development using PHP & MySQL with HTML5, CSS, JavaScript Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create

More information

PRICE LIST Video Transmission Fiber Optic Cable TEL: (May 2015) HD-AHD CCTV System

PRICE LIST Video Transmission Fiber Optic Cable TEL: (May 2015)  HD-AHD CCTV System COMMUNICATION PRODUCTS Video Transmission Fiber Optic Cable PRICE LIST 2015 HD-AHD CCTV System HD-CVI CCTV System HD-TVI CCTV System Analog CCTV System (May 2015) www.facebook.com/bismonthailand TEL: 0-2563-5000

More information

Web Technologies II + Project Management for Web Applications

Web Technologies II + Project Management for Web Applications Web Engineering Web Technologies II + Project Management for Web Applications Copyright 2015 Ioan Toma & Nelia Lassiera 1 Where are we? # Date Title 1 5 th March Web Engineering Introduction and Overview

More information

Nagaraju Bende

Nagaraju Bende AngularJS Nagaraju Bende Blog Twitter @nbende FaceBook nbende Agenda Filters in AngularJS Basic usage with expressions To make filters interact with the expression, we just need to put them inside double

More information

การสร างเว บเซอร ว สโดยใช Microsoft.NET

การสร างเว บเซอร ว สโดยใช Microsoft.NET การสร างเว บเซอร ว สโดยใช Microsoft.NET อ.ดร. กานดา ร ณนะพงศา ภาคว ชาว ศวกรรมคอมพ วเตอร คณะว ศวกรรมคอมพ วเตอร มหาว ทยาล ยขอนแก น บทน า.NET เป นเคร องม อท เราสามารถน ามาใช ในการสร างและเร ยกเว บเซอร ว สได

More information

ร จ กก บ MySQL Cluster

ร จ กก บ MySQL Cluster ร จ กก บ MySQL Cluster ก ตต ร กษ ม วงม งส ข (Kittirak Moungmingsuk) kittirak@clusterkit.co.th May 19, 2012 @ossfestival #11 `whoami` A part of team at Cluster Kit Co.,Ltd. Since 2007. Adjacent Lecturer

More information

Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut

Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut Part I: Overview Part II: Process Management Part III : Storage Management Chapter 8: Memory- Management Strategies Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 8: Memory Management

More information

Building JSR-286 portlets using AngularJS and IBM Web Experience Factory

Building JSR-286 portlets using AngularJS and IBM Web Experience Factory Building JSR-286 portlets using AngularJS and IBM Web Experience Factory Overview This article illustrates how to build JSR-286 portlets using AngularJS framework and IBM Web Experience Factory (WEF) for

More information

<?xml version = 1.0 encoding= windows-874?> <?xml-stylesheet type= text/css href= #xmldocs?> <style id= xmldocs > element-name{ } </style>

<?xml version = 1.0 encoding= windows-874?> <?xml-stylesheet type= text/css href= #xmldocs?> <style id= xmldocs > element-name{ } </style> XML Displaying Displaying XML: CSS A modern web browser and a cascading style sheet (CSS) may be used to view XML as if it were HTML A style must be defined for every XML tag, or the browser displays it

More information

Task 1: JavaScript Video Event Handlers

Task 1: JavaScript Video Event Handlers Assignment 13 (NF, minor subject) Due: not submitted to UniWorX. No due date. Only for your own preparation. Goals After doing the exercises, You should be better prepared for the exam. Task 1: JavaScript

More information

กองว ชาประว ต ศาสตร ส วนการศ กษา โรงเร ยนนายร อยพระจ ลจอมเกล า 18 ต ลาคม พ.ศ. 2549

กองว ชาประว ต ศาสตร ส วนการศ กษา โรงเร ยนนายร อยพระจ ลจอมเกล า 18 ต ลาคม พ.ศ. 2549 บ ญช ด ชน เอกสารเก ยวก บประเทศไทยจากส าน กหอจดหมายเหต แห งชาต สหร ฐอเมร กา RG 226 Entry 153 A Records of the Office of Strategic Services: Washington Director's Office พ.ท.ผศ.ดร. ศรศ กร ช สว สด ผ รวบรวม

More information

Example: How to create a shape from SpecialShapeFactory.

Example: How to create a shape from SpecialShapeFactory. Example: How to create a shape from SpecialShapeFactory. // Create the Cross Shape ArrayList linelist = new ArrayList(); pointlist.add(new Point2D.Double(420.0,152.0)); pointlist.add(new

More information

Produced by. App Development & Modeling. BSc in Applied Computing. Eamonn de Leastar

Produced by. App Development & Modeling. BSc in Applied Computing. Eamonn de Leastar App Development & Modeling BSc in Applied Computing Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie

More information

Specifications 14TB 12TB 10TB 8TB 6TB 4TB 3TB 2TB 1TB

Specifications 14TB 12TB 10TB 8TB 6TB 4TB 3TB 2TB 1TB SEAGATE Internal Harddisk Drive Skyhawk : 3.5 ส นค า ร บประก น 3 ป Smart. Safe. Secure. : Seagate Surveillance-Optimized Storage Seagate SkyHawkค ม ครบ เพ อ อนาคต Hard disk ส าหร บกล องวงจรป ดโดยเฉพาะ

More information

Financial. AngularJS. AngularJS. Download Full Version :

Financial. AngularJS. AngularJS. Download Full Version : Financial AngularJS AngularJS Download Full Version : https://killexams.com/pass4sure/exam-detail/angularjs Section 1: Sec One (1 to 50) Details:This section provides a huge collection of Angularjs Interview

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development About Me Name: Jonathan Brown Job: Full Stack Web Developer Experience: Almost 3 years of experience in WordPress development Getting started With the REST API and Angular JS Folder Structure How to setup

More information

title shown on page tab <meta attribute="value"... /> page metadata (h1 for largest to h6 for smallest) emphasis (italic) strong emphasis (bold)

title shown on page tab <meta attribute=value... /> page metadata (h1 for largest to h6 for smallest) emphasis (italic) strong emphasis (bold) CSE 154: Web Programming Midterm Exam Cheat Sheet HTML Tags Used in the head Section Tag text title shown on page tab page metadata

More information

Financial. AngularJS. AngularJS.

Financial. AngularJS. AngularJS. Financial http://killexams.com/exam-detail/ Section 1: Sec One (1 to 50) Details:This section provides a huge collection of Angularjs Interview Questions with their answers hidden in a box to challenge

More information

Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world

Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Visit us on the World Wide Web at: www.pearsoned.co.uk Pearson Education Limited 2014

More information

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 07 Minor Subject

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 07 Minor Subject Multimedia im Netz Online Multimedia Winter semester 2015/16 Tutorial 07 Minor Subject Ludwig-Maximilians-Universität München Online Multimedia WS 2015/16 - Tutorial 06 (NF) - 1 Today s Agenda Recap AJAX

More information

What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager

What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager What s Hot & What s New from Microsoft ส มล อน นตธนะสาร Segment Marketing Manager 1 โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall,

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM

CSI 3140 WWW Structures, Techniques and Standards. Browsers and the DOM CSI 3140 WWW Structures, Techniques and Standards Browsers and the DOM Overview The Document Object Model (DOM) is an API that allows programs to interact with HTML (or XML) documents In typical browsers,

More information

Lazy Loading Techniques

Lazy Loading Techniques Lazy Loading Techniques Introduction Nir Kaufman AngularJS infrastructures - lazy loading techniques: 1. Introducing the lazy loading challenges with AngularJS 2. Review a working demo project overview

More information

A Model-Driven Development of Web Applications Using AngularJS Framework

A Model-Driven Development of Web Applications Using AngularJS Framework A Model-Driven Development of Web Applications Using AngularJS Framework Wutthichai Chansuwath Department of Computer Engineering Chulalongkorn University Bangkok 10330, Thailand wutthichai.c@student.chula.ac.th

More information

Ethernet'Basics. Topics

Ethernet'Basics. Topics 'Basics ผศ.ดร.ส ร นทร ก ตต ธรก ล และ อ.สรย ทธ กลมกล อม ภาคว ชาว ศวกรรมคอมพ วเตอร คณะว ศวกรรมศาสตร สถาบ นเทคโนโลย พระจอมเกล าเจ าค ณทหารลาดกระบ ง Topics History,)Standards,)Terminologies Transmission)media

More information

Jquery Ajax Json Php Mysql Data Entry Example

Jquery Ajax Json Php Mysql Data Entry Example Jquery Ajax Json Php Mysql Data Entry Example Then add required assets in head which are jquery library, datatable js library and css By ajax api we can fetch json the data from employee-grid-data.php.

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

TRAINING SCHEDULE 2012

TRAINING SCHEDULE 2012 TRAINING SCHEDULE 0 Title -Quality Management Systems (QM) : ISO 00:008 Introduction and Awareness to ISO 00:008,00 8 8 7 8 7 Introduction and Awareness to ISO 00:008 (English version),00 7 Guideline for

More information

Thai Text Localization in Natural Scene Images using Convolutional Neural Network

Thai Text Localization in Natural Scene Images using Convolutional Neural Network Thai Text Localization in Natural Scene Images using Convolutional Neural Network Thananop Kobchaisawat * and Thanarat H. Chalidabhongse * Department of Computer Engineering, Chulalongkorn University,

More information

Information Design. Professor Danne Woo! infodesign.dannewoo.com! ARTS 269 Fall 2018 Friday 10:00PM 1:50PM I-Building 212

Information Design. Professor Danne Woo! infodesign.dannewoo.com! ARTS 269 Fall 2018 Friday 10:00PM 1:50PM I-Building 212 Information Design Professor Danne Woo! infodesign.dannewoo.com! ARTS 269 Fall 2018 Friday 10:00PM 1:50PM I-Building 212 Interactive Data Viz Week 8: Data, the Web and Datavisual! Week 9: JavaScript and

More information

AngularJS Intro Homework

AngularJS Intro Homework AngularJS Intro Homework Contents 1. Overview... 2 2. Database Requirements... 2 3. Navigation Requirements... 3 4. Styling Requirements... 4 5. Project Organization Specs (for the Routing Part of this

More information

A conditional statement can compare two values. Here we check if one variable we declared is greater than another. It is true so the code executes.

A conditional statement can compare two values. Here we check if one variable we declared is greater than another. It is true so the code executes. ANGULARJS #7 7.1 Review JS 3 A conditional statement can compare two values. Here we check if one variable we declared is greater than another. It is true so the code executes. var cups = 15; var saucers

More information

โปรแกรมท น าสนใจส าหร บไตรมาสน

โปรแกรมท น าสนใจส าหร บไตรมาสน แคมเปญ และก จกรรมทางการตลาด (ต ลาคม ธ นวาคม 2552) โปรแกรมท น าสนใจส าหร บไตรมาสน Crisis Turing Point II Oct-Dec 09 Windows 7 งานเป ดต วสาหร บล กค าท วไป, Paragon Hall, 31 Oct -1 Nov งานเป ดต วสาหร บล กค

More information

ร ปแบบใหม ของการต ดต อส อสารไร สาย

ร ปแบบใหม ของการต ดต อส อสารไร สาย ร ปแบบใหม ของการต ดต อส อสารไร สาย ค ณล กษณะของต วระบบ Motorola Wireless Canopy เป นอ ปกรณ ส อสารไร สายท ออกแบบมาเพ อการร บส งข อม ลแบบความเร วส ง (Broadband) โดยปราศจากส ญญาณรบกวนต างๆ โดยใช ความถ ย าน

More information

Single Page Applications

Single Page Applications Single Page Applications Mendel Rosenblum Web Apps and Browsers Web apps run in browsers (by definition) Users are use to browsing in browsers Browser maintains a history of URLs visited Back button -

More information

Microsoft Windows7. The Trainer. Microsoft Windows7. Name : Phattharaphon Khajornchaiyakul Nickname : Phat

Microsoft Windows7. The Trainer. Microsoft Windows7. Name : Phattharaphon Khajornchaiyakul Nickname : Phat Microsoft Windows7 1 The Trainer Name : Phattharaphon Khajornchaiyakul Nickname : Phat Email : ibwiw@hotmail.com 2 www.npssolution.com : 081-8836286 1 Understanding Windows 7 The Different Versions of

More information

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60

กล ม API ท ใช. Programming Graphical User Interface (GUI) Containers and Components 22/05/60 กล ม API ท ใช Programming Graphical User Interface (GUI) AWT (Abstract Windowing Toolkit) และ Swing. AWT ม ต งต งแต JDK 1.0. ส วนมากจะเล กใช และแทนท โดยr Swing components. Swing API ปร บปร งความสามารถเพ

More information