Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

Similar documents
Princess Nourah bint Abdulrahman University. Computer Sciences Department

Web Design. Basic Concepts

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

A network is a group of two or more computers that are connected to share resources and information.

HTML5 MOCK TEST HTML5 MOCK TEST I

Discovering Computers Chapter 13 Programming Languages and Program Development

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Time: 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups as directed. Group A.

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

CS WEB TECHNOLOGY

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Web Design and Application Development

AIM. 10 September

Hypertext Markup Language, or HTML, is a markup

Interchange formats. Introduction Application areas Requirements Track and object model Real-time transfer Different interchange formats Comparison

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information.

Chapter 1 Introduction to HTML, XHTML, and CSS

5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web

1. Setup a root folder for the website 2. Create a wireframe 3. Add content 4. Create hyperlinks between pages and to external websites

Lesson 5: Multimedia on the Web

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Inf 202 Introduction to Data and Databases (Spring 2010)

Cleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing

Introduction to XML 3/14/12. Introduction to XML

Enduring Understandings: Web Page Design is a skill that grows and develops throughout the careful planning and study of software and design.

Exam : 9A Title : Adobe GoLive CS2 ACE Exam. Version : DEMO

powered by Series of Tubes Senator Ted Stevens talking about the Net Neutrality Bill Jul 17, powered by

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition

Web Systems & Technologies: An Introduction

Background of HTML and the Internet



JavaScript Context. INFO/CSE 100, Spring 2005 Fluency in Information Technology.

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Web Systems & Technologies: An Introduction

Web Programming Paper Solution (Chapter wise)

Introduction to web development and HTML MGMT 230 LAB

HTML, XHTML, and CSS. Sixth Edition. Chapter 1. Introduction to HTML, XHTML, and

Acceptance Test. Smart Scheduling. Empire Unlimited. Requested by:

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

Requirements Specification

FUNDAMENTALS OF WEB DESIGN (46)

It is possible to create webpages without knowing anything about the HTML source behind the page.

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

MRK260. Week Two. Graphic and Web Design

1.1 Technical Evaluation Guidelines and Checklist:

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies

Web Design E M I R R A H A M A N WEB DESIGN SIDES 2017 EMIR RAHAMAN 1

INTRODUCTION TO HTML5! HTML5 Page Structure!

Contents 1 INTRODUCTION TO COMPUTER NETWORKS...

Table of Contents WWW. WWW history (2) WWW history (1) WWW history. Basic concepts. World Wide Web Aka The Internet. Client side.

This document provides a concise, introductory lesson in HTML formatting.

Shankersinh Vaghela Bapu Institue of Technology

Beginning HTML. The Nuts and Bolts of building Web pages.

Introduction to WEB PROGRAMMING

ERTH 401 / GEOP 501 Computer Tools. Lecture 12: Websites. Ronni Grapenthin MSEC 356 x5924. November 13, 2017

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

Lesson 12: JavaScript and AJAX

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Seema Sirpal Delhi University Computer Centre

Information Systems Software

Next... Next... Handling the past What s next - standards and browsers What s next - applications and technology

INTRODUCTION TO WEB USING HTML What is HTML?

205CDE: Developing the Modern Web. Assignment 1: Designing a Website. Scenario: D Bookshop

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Web Glossary. Web Design One Columbia College, Chicago, Debra Kayes

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

FACULTY OF INFORMATION STUDIES UNIVERSITI TEKNOLOGI MARA CAWANGAN KELANTAN SCHEME OF WORK (RANCANGAN KULIAH)

Using AJAX to Easily Integrate Rich Media Elements

EEC-682/782 Computer Networks I

Programmazione Web a.a. 2017/2018 HTML5

Creating and Building Websites

Developing a Basic Web Page

Embracing HTML5 CSS </> JS javascript AJAX. A Piece of the Document Viewing Puzzle

Survey Introduction. Thank you for participating in the WritersUA Skills and Technologies survey!

Chapter 11 Program Development and Programming Languages

BMS2062 Introduction to Bioinformatics. Lecture outline. What is multimedia? Use of information technology and telecommunications in bioinformatics

HTML CS 4640 Programming Languages for Web Applications

COMS 469: Interactive Media II

Unit 4 The Web. Computer Concepts Unit Contents. 4 Web Overview. 4 Section A: Web Basics. 4 Evolution

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

ANAND COMMUNICATION CARE M 342, RAGHUBIR NAGAR, NEW DELHI

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

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

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Index. C CakePHP framework, 232 Cascading Style Sheets (CSS)

Checklist for Testing of Web Application

DATABASE SYSTEMS. Introduction to web programming. Database Systems Course, 2016

Accessibility of EPiServer s Sample Templates

c122jan2714.notebook January 27, 2014

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant,

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Web Development IB PRECISION EXAMS

Lesson 5: Multimedia on the Web

Tutorial 2 - HTML basics

Transcription:

Languages in WEB E-Business Technologies Summer Semester 2009 Submitted to Prof. Dr. Eduard Heindl Prepared by Jenisha Kshatriya (Mat no. 232521) Fakultät Wirtschaftsinformatik Hochshule Furtwangen University

Declaration I, hereby declare that all the work for this document is solely done by me. The examples used in the document to explain HTML and JavaScript are practiced by me. All the sources are cited in the footer of the page as well as at end of the document in alphabetical order. Jenisha Kshatriya 26 th July 2009 2

Table of Contents Introduction... 4 1. HTML... 4 1.1 How HTML works?... 5 1.2 HTML Tags... 5 1.3 How to prepare HTML document?... 6 1.4 Limitations of HTML... 7 2. JavaScript... 7 2.1 How JavaScript works?... 7 2.2 Uses of JavaScript... 7 2.3 How to use JavaScript in HTML?... 8 2.4 Limitation of JavaScript... 9 3. PHP... 9 3.1 How PHP works?... 9 3.2 Limitations of PHP... 9 4. XML... 9 4.1 How XML works?... 10 5. AJAX... 11 5.1 How AJAX works?... 11 Summary... 12 References... 13 Table of Figures Figure 1 Working of HTML... 5 Figure 2 HTML code in Notepad... 6 Figure 3 HTML document display in browser... 6 Figure 4 JavaScript code... 8 Figure 5 JavaScript validation in browser... 8 Figure 6 XML working structure... 10 Figure 7 AJAX web application model... 11 3

Introduction 1 The internet is a network of computers all over the globe. These computers are interconnected to each other and can send and receive data. Internet has become a part of our modern daily life. The World Wide Web is a facet of the internet. The World Wide Web is made up of millions of files and documents which consists of images, audio, video etc. These files and documents are host on different computers over internet. The base for all these web documents is HTML and other web languages. You can access internet over many different devices like Personal Computer, Laptop, mobile phones, game consoles, personal digital assistants (PDA) and so on. All these devices are programmed in such a way that they can interpret HTML code. This software is called a Web Browser. A web browser is a program intended to render HTML documents. It is also called user agent or Client. A computer that serves data to the client is called a Server. The client and server are connected to each other through internet. Now a days, internet world is not just limited to HTML. It also uses other technologies like Flash, Shockwave, JavaScript, ASP, PHP, XML, AJAX etc. Web designing is a skill how you design the content of your web page. Some of the technologies used for web designing are: Markup languages like HTML and XML Style sheet languages like CSS (Cascading Style Sheet) and XSL Client side scripting like JavaScript and VBScript Server side scripting like PHP and ASP (Active Server Pages) Multimedia technologies like Flash and Sliverlight Some of the technologies which we are going to discuss are HTML, JavaScript, PHP, XML and AJAX. 1. HTML HTML stands for Hyper Text Markup Language. It is not a programming language. It is used to convert ordinary text to active text for display purpose and to use it over the web. It allows you to format the content of a webpage using a set of markup tags. These tags are predefined. The rules of HTML are predefined or maintained by World Wide Web Consortium (W3C) which is a non profit organization that defined many of the open technical standards. HTML is simple to use and flexible language. It is free and not owned by any company. There is no license required to purchase HTML. 1 Beginning HTML with CSS and XHTML: Modern Guide and Reference published by Apress written by David Schultz and Craig Cook. 4

HTML gives you same look of the web page in any of the web browsers below: Microsoft Internet Explorer default for Windows OS. Apple Safari default for Mac OS. Mozilla Firefox for Windows, Linux and Mac OS. http://www.mozilla.com/firefox/ Netscape Navigator for Windows, Linux and Mac OS. http://browser.netscape.com Opera http://www.opera.com Konqueror is a free browser and file manager for Linux. http://www.konqueror.org OmniWeb is a browser for Mac OS. http://www.omnigroup.com/applications/omniweb/ 1.1 How HTML works? 2 HTML files are host on the Web server. When someone request for a HTML page it is called HTTP request. The Web server responds to request from a Web client (browser). This is called HTTP response. The Web server sends an unbroken string of ASCII text as response to the user over the internet. This ASCII text is converted by user s browser into a readable text. HTTP Request for Web page Web Client Web Server HTTP Response Figure 1 Working of HTML 1.2 HTML Tags HTML markup tags are written with in angular brackets e.g. <HTML>, <BODY>, <HEAD> HTML tags are nested and they have beginning and ending tag e.g. <HTML> </HTML> HTML tags are not case sensitive. HTML document begins with <HTML> tag and end with </HTML> tag. The text between <HTML> and </HTML> tells about the web page. 2 http://www.howstuffworks.com/web page.htm 5

The text written in <BODY> and </BODY> tags represents content of the web page. The text written in between <H1> <H6> and </H1> </H6> tags displays heading of the web page. The text in between <P> and </P> tags displays paragraph. 1.3 How to prepare HTML document? Anyone can use HTML tags to create and publish their web pages just using simple editor like NOTEPAD. This NOTEPAD file has to be saved with.html or.htm extension. One can also use HTML editors like MS FrontPage or Dreamweaver to create HTML pages. Figure 2 HTML code in Notepad Figure 3 HTML document display in browser To publish the HTML document, one needs Internet Information Server (IIS) or Personal Web Server (PWS ). IIS comes along with Windows XP, 2000, NT and Vista. PWS is outdated for professional use. 6

1.4 Limitations of HTML HTML does not recognize spaces, tabs or margins. It does not recognize paragraph breaks or line breaks. It does not support all the font styles. 2. JavaScript 3 JavaScript is also known as ECMA Script. It is maintained by ECMA organization. JavaScript is mainly used to make HTML pages more interactive. Just like HTML JavaScript is also available free without license. It is an interpreted language which means that scripts are executed without prior compilation. It is a case sensitive language. It is a light programming language. JavaScript code is embedded within HTML document. It is executed by the web browser. Script written in body part of a HTML document is executed when the HTML page loads where as script written in the header part is executed when some event is triggered or when called. It is written between <SCRIPT LANGUAGE="JavaScript"> and </SCRIPT> tags. 2.1 How JavaScript works? JavaScript is also called Client side scripting language. It means that it runs inside a browser. Browser has a built in interpreter, which reads JavaScript code in a web page and execute it when the page loads in the browser. JavaScript is mainly used for validation purpose. 2.2 Uses of JavaScript JavaScript can be used to dynamically format text in the HTML pages. It reacts to events like after page has loaded or when user clicks some events. It can be used to detect what browser a user is using. It can be used to create cookies which stores and retrieve information on a user s computer. 3 http://www.w3schools.com/js/default.asp 7

2.3 How to use JavaScript in HTML document? JavaScript can be put in body part as well as in the head part of HTML document. Following is a sample code using JavaScript which is executed when Submit button is clicked. Figure 4 JavaScript code Figure 5 JavaScript validation in browser 8

2.4 Limitation of JavaScript JavaScript cannot use printer or any other device on user s PC or in a LAN. It cannot directly access files on user s PC or in a LAN. It cannot do multiprocessing or multithreading. 3. PHP PHP stands for PHP: Hypertext Preprocessor. It helps in creating interactive HTML pages. It is free and widely used. An alternative to PHP is Microsoft ASP. PHP and ASP are server side scripting languages because their code is executed on the Web Server. PHP scripts are executed on the server and it supports many databases like Oracle, MS SQL, Sybase, Informix, Generic ODBC, etc. It is open source software and can be downloaded from www.php.net. PHP files have.php,.php3 or.phtml extensions. PHP files can contain HTML tags and JavaScript. PHP runs on different platforms like Windows, Mac OS, Linux, etc. PHP has capability to access data and software on the server. PHP code always begins with <?php & ends with? >. 3.1 How PHP works? Web pages for some websites are customized. PHP code in the web page will determine the customization. When a user sends any request to the web server for accessing dynamic information, PHP code will react to user s request. Browser helps in providing information to the web server with the help of cookies or by other means. The server responds to each customized request by sending required information to user s browser. 3.2 Limitations of PHP PHP is not pure Object Oriented scripting language. Performance of PHP is lower than C or C++ language. 4. XML 4 XML stands for EXtensible Markup language. It is just like HTML but it can have user defined tags and they are self descriptive. XML tags are not predefined. Like HTML, XML is not used for designing web pages. It is mainly used for data transfer and store data. XML is a way to encode 4 http://www.softwareag.com/xml/about/starters.htm 9

text as well as data to process the content without much of human intervention. It can be used to exchange information across different hardware, operating systems and applications. XML supports Unicode and multilingual documents. XML is widely accepted by big companies like Sun Microsystems, SAP, Microsoft, etc as data transfer medium. XML is used to create new languages like XHTML for designing web pages, WSDL (Web Service Definition Language) for describing web services, WAP (Wireless Application Protocol) & WML (Wireless Markup Language) as markup languages for handy devices, SMIL (Synchronous Multimedia Integration Language) for describing multimedia for web, RDF (Resource Description Framework) to describe resources, etc. XML is compatible with almost all the web browsers. 4.1 How XML works? 5 For XML, following files are required: 1. DTD (Document Type Definition) file which defines the functioning of tags. 2. XSL (Extended Stylesheet Language) file defines how the tags should be displayed in the browser. 3. XML file in which actual data and text are stored. It consists of sequence of elements and tags. Figure 6 XML working structure XML processor in any application parses data using XML file and DTD or Schema to create a Parse tree. Stylesheets can be created by developers to customize data display for different devices like mobile phone, browsers in PCs, text to speech devices and many more. 5 http://www.scs.carleton.ca/~weiss/links/xml/talks/apps/sld006.htm 10

5. AJAX 6 AJAX stands for Asynchronous JavaScript and XML. It is based on JavaScript and HTTP request. AJAX is a technique that is used for creating better and faster interactive web applications. Using AJAX, one can transfer data between the browser and a web server asynchronously. It allows you to update your web page with the required information without reloading or refreshing the web page. This makes the web page work faster by just displaying as much information required in the same web page. Google Suggest also suggest to use AJAX. Some of the web sites that are using AJAX are Google Maps, Google Suggest, Wikimapia, LiveMarks, BackBase, Kiko, Kayak, Meebo, etc. 7 AJAX is based on following standards of Web: HTML JavaScript CSS XML 5.1 How AJAX works? Figure 7 AJAX web application model Any AJAX web application has an AJAX engine in the web browser. It is nothing but a JavaScript object or a function, which is called whenever any information is requested from the web server. This AJAX engine communicates with the web server for required data. The web server queries the database and sends the required information to web server. The web server sends this data to AJAX engine which then sends data in HTML format to the browser for display. This process is done without reloading the web page. Only the required information is updated in the web page. 6 http://www.w3schools.com/ajax/default.asp 7 http://www.dynamicajax.com/fr/ajax_example_sites.html 11

Summary The following things are possible with the help of web languages: Easy access to required content at single click with the help of web pages. Fast availability of information due to internet and web sites. Emails have replaced newsletters. Less searching time. Grow in online business and marketing. It has become boon to online shopping websites like ebay.com, amazon.com, yatego.com and many more. Enforces the administrator to change the content and keep the site updated at regular intervals. 12

References AJAX example site (http://www.dynamicajax.com/fr/ajax_example_sites.html) Beginning HTML with CSS and XHTML: Modern Guide and Reference published by Apress written by David Schultz and Craig Cook. Carleton University (http://www.scs.carleton.ca/~weiss/links/xml/talks/apps/sld006.htm) How Stuff works (http://www.howstuffworks.com/web page.htm) W3school website (http://www.w3schools.com/ajax/default.asp) W3school website (http://www.w3schools.com/js/default.asp) XML basics (http://www.softwareag.com/xml/about/starters.htm) 13