WEB PROGRAMMING LAB (Common to CSE & IT)



Similar documents
Short notes on webpage programming languages

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

10CS73:Web Programming

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Website Login Integration

Outline of CSS: Cascading Style Sheets

Introduction to Web Design Curriculum Sample

Using Style Sheets for Consistency

ICT 6012: Web Programming

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

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

Using an external style sheet with Dreamweaver (CS6)

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Xtreeme Search Engine Studio Help Xtreeme

Basic tutorial for Dreamweaver CS5

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Website Planning Checklist

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Novell Identity Manager

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Style & Layout in the web: CSS and Bootstrap

CS412 Interactive Lab Creating a Simple Web Form

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

AJAX The Future of Web Development?

JISIS and Web Technologies

Software Requirements Specification For Real Estate Web Site

Introduction to XHTML. 2010, Robert K. Moniot 1

PDG Software. Site Design Guide

TIME SCHEDULE OBJECTIVES

IT6503 WEB PROGRAMMING. Unit-I

Spectrum Technology Platform

HTML, CSS, XML, and XSL

Lesson Review Answers

LAB MANUAL CS (22): Web Technology

How to Display Weather Data on a Web Page

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Further web design: HTML forms

{color:blue; font-size: 12px;}

Web. Services. Web Technologies. Today. Web. Technologies. Internet WWW. Protocols TCP/IP HTTP. Apache. Next Time. Lecture # Apache.

WEB DEVELOPMENT IA & IB (893 & 894)

Web Development 1 A4 Project Description Web Architecture

Introduction to Adobe Dreamweaver CC

CSCI110 Exercise 4: Database - MySQL

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Portals and Hosted Files

Introduction to web development using XHTML and CSS. Lars Larsson. Today. Course introduction and information XHTML. CSS crash course.

Developing XML Solutions with JavaServer Pages Technology

Contents. Introduction Downloading the Data Files... 2

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

Advanced Web Design. Zac Van Note.

Quick Start Guide. Installation and Setup

Web Design and Databases WD: Class 7: HTML and CSS Part 3

A send-a-friend application with ASP Smart Mailer

Instant Chime for IBM Sametime Installation Guide for Apache Tomcat and Microsoft SQL

Improved Navigation Magento Extension User Guide

RIT Message Center Compose and Send Messages

Building A Very Simple Web Site

CSS - Cascading Style Sheets

Contents. Downloading the Data Files Centering Page Elements... 6

Advanced Tornado TWENTYONE Advanced Tornado Accessing MySQL from Python LAB

Preface. Motivation for this Book

ITP 101 Project 3 - Dreamweaver

WIRIS quizzes web services Getting started with PHP and Java

The Web Web page Links 16-3

Dreamweaver CS3 THE MISSING MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

HTML Tables. IT 3203 Introduction to Web Development

Course Name: Course in JSP Course Code: P5

Web Authoring CSS. Module Descriptor

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Software Development Kit (SDK)

Client-side Web Engineering From HTML to AJAX

Welcome to PowerClaim Net Services!

Themes and Templates Manual FOR ADVANCED USERS

COURSE OUTLINE FACULTY OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITI TEKNIKAL MALAYSIA MELAKA

ERIE COMMUNITY COLLEGE COURSE OUTLINE A. COURSE TITLE: CS WEB DEVELOPMENT AND PROGRAMMING FUNDAMENTALS

Salesforce Customer Portal Implementation Guide

Pay with Amazon Integration Guide

IT3504: Web Development Techniques (Optional)

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

CREATE A CUSTOM THEME WEBSPHERE PORTAL

ISI ACADEMY Web applications Programming Diploma using PHP& MySQL

How to create an template

Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief

Registering the Digital Signature Certificate for Bank Officials

Altru Masters Workshop Creating the Best Online Experience for your Patrons Part 1: Online Basics

IT3503 Web Development Techniques (Optional)

Personal Portfolios on Blackboard

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

ITNP43: HTML Lecture 4

... Asbru Web Content Management System. Getting Started. Easily & Inexpensively Create, Publish & Manage Your Websites

Transcription:

138 WEB PROGRAMMING LAB (Common to CSE & IT) Course Code :13CT1121 L T P C 0 0 3 2 Course Educational Objectives: The main objective of the lab course is to expose the students to different programming aspects related to web designing using different technologies. Upon completion of this course, the student should be able to: 1. Understand web page site planning, designing, and maintenance. 2. Develop web sites which are secure and dynamic in nature and writing scripts which get executed on server as well. 3. Study the actual advanced Web methodologies, specifications and techniques. 4. Acquire the skills necessary to design, implement and deploy complex Web sites and applications. 5. Understands the concepts of PHP and AJAX to develop web pages Course Outcomes: At the end of the course the student should be able to 1. Get practical exposure on HTML, XHTML, CSS, JavaScript, XML and other web technologies. 2. Get practical exposure to develop XML Technologies such as XML Schemas, XSLT. 3. Get practical exposure to develop Server-Side Programming using Servlets and JSP s. 4. Develop web pages using AJAX and PHP. 5. Develop a website using the above technologies. LIST OF PROGRAMS: WEEK-1 & 2: Design the following static web pages required for an online book store

139 web site. 1) HOME PAGE: The static home page must contain three frames. Top frame : Logo and the college name and links to Home page, Login page, Registration page, Catalogue page and Cart page (the description of these pages will be given below). Left frame : At least four links for navigation, which will display the catalogue of respective links. For e.g.: When you click the link CSE the catalogue for CSE Books should be displayed in the Right frame. Right frame: The pages to the links in the left frame must be loaded here. Initially this page containms description of the web site. Logo Web Site Name Home Login Registration Catalogue Cart CSE ECE EEE CIVIL Description of the website 2) Login Page Logo Web Site Name Home Login Registration Catalogue Cart CSE ECE Log in EEE CIVIL Password Submit Reset

140 3) CATOLOGUE PAGE: The catalogue page should contain the details of all the books available in the web site in a table. The details should contain the following: 1. Snap shot of Cover Page. 2. Author Name. 3. Publisher. 4. Price. 5. Add to cart button. Note: Week 2 contains the remaining pages and their description. 4) CART PAGE: The cart page contains the details about the books which are added to the cart. The cart page should look like this: Logo Web Site Name Home Login Registration Catalogue Cart CSE ECE Book name Price Quantity Amount EEE Java 2 $ 35.5 2 $ 70 CIVIL XML bible $ 40.5 1 $ 40.5 Total amount- $130.5

141 5) REGISTRATION PAGE: Create a registration form with the following fields 1) Name (Text field) 2) Password (password field) 3) E-mail id (text field) 4) Phone number (text field) 5) Sex (radio button) 6) Date of birth (3 select boxes) 7) Languages known (check boxes English, Telugu, Hindi, Tamil) 8) Address (text area) WEEK 3: VALIDATION: Write JavaScript to validate the following fields of the above registration page. 1. Name (Name should contains alphabets and the length should not be less than 6 characters). 2. Password (Password should not be less than 6 characters length). 3. E-mail id (should not contain any invalid and must follow the standard pattern name@domain.com) 4. Phone number (Phone number should contain 10 digits only). Note : You can also validate the login page with these parameters. WEEK 4: Design a web page using CSS (Cascading Style Sheets) which includes the following: 1) Use different font, styles: In the style definition you define how each selector should work (font, color etc.). Then, in the body of your pages, you refer to these selectors to activate the styles.

142 For example: <HTML> <HEAD> <style type= text/css > B.headline {color:red; font-size:22px; font-family:arial; textdecoration: underline} </style> </HEAD> <BODY> <b>this is normal bold</b><br> Selector {cursor:value} For example: <html> <head> <style type= text/css >.xlink {cursor:crosshair}.hlink{cursor:help} </style> </head> <body> <b> <a href= mypage.htm class= xlink >CROSS LINK</a> <br> <a href= mypage.htm class= hlink >HELP LINK</a> </b> </body> </html>

143 <b class= headline >This is headline style bold</b> </BODY> </HTML> 2) Set a background image for both the page and single elements on the page. You can define the background image for the page like this: BODY {background-image:url(myimage.gif);} 3) Control the repetition of the image with the background-repeat property. As background-repeat: repeat Tiles the image until the entire page is filled, just like an ordinary background image in plain HTML. 4) Define styles for links as A:link A:visited A:active A:hover Example: <style type= text/css > A:link {text-decoration: none} A:visited {text-decoration: none} A:active {text-decoration: none} A:hover {text-decoration: underline; color: red;} </style> 5) Work with layers: For example: LAYER 1 ON TOP: <div style= position:relative; font-size:50px; z-index:2; >LAYER 1</div> <div style= position:relative; top:-50; left:5; color:red; font-size:80px; z- index:1">layer 2</div> LAYER 2 ON TOP:

144 <div style= position:relative; font-size:50px; z-index:3; >LAYER1</div> <div style= position:relative; top:-50; left:5; color:red; fontsize:80px; zindex:4">layer 2</div> 6) Add a customized cursor: Selector {cursor:value} For example: <html> <head> <style type= text/css >.xlink {cursor:crosshair}.hlink{cursor:help} </style> </head> <body> <b> <a href= mypage.htm class= xlink >CROSS LINK</a> <br> <a href= mypage.htm class= hlink >HELP LINK</a> </b> </body> </html> WEEK 5: Write an XML file which will display the Book information which includes the following: 1) Title of the book 2) Author Name 3) ISBN number

145 4) Publisher name 5) Edition 6) Price Write a Document Type Definition (DTD) to validate the above XML file. Display the XML file as follows. The contents should be displayed in a table. The header of the table should be in color GREY. And the Author names column should be displayed in one color and should be capitalized and in bold. Use your own colors for remaining columns. Use XML schemas XSL and CSS for the above purpose. Note: Give at least for 4 books. It should be valid syntactically. Hint: You can use some xml editors like XML-spy WEEK 6: 1) Install TOMCAT web server and APACHE. While installation assign port number 4040 to TOMCAT and 8080 to APACHE. Make sure that these ports are available i.e., no other process is using this port. 2) Access the above developed static web pages for books web site, using these servers by putting the web pages developed in week-1 and week-2 in the document root. Access the pages by using the urls : http://localhost:4040/rama/books.html (for tomcat) http:// localhost:8080/books.html (for Apache) WEEK 7: USER AUTHENTICATION : Assume four users user1,user2,user3 and user4 having the passwords pwd1,pwd2,pwd3 and pwd4 respectively. Write a servelet for doing the following. 1. Create a Cookie and add these four user id s and passwords to this Cookie. 2. Read the user id and passwords entered in the Login form (week1) and authenticate with the values (user id and passwords ) available in the cookies.

146 If he is a valid user(i.e., user-name and password match) you should welcome him by name(user-name) else you should display You are not an authenticated user. Use init-parameters to do this. Store the usernames and passwords in the webinf.xml and access them in the servlet by using the getinitparameters() method. WEEK 8: Install a database(mysql or Oracle). Create a table which should contain at least the following fields: name, password, email-id, phone number(these should hold the data from the registration form). Practice JDBC connectivity. Write a java program/servlet/jsp to connect to that database and extract data from the tables and display them. Insert the details of the users who register with the web site, whenever a new user clicks the submit button in the registration page (week1). WEEK 9: Write a JSP which does the following job: Insert the details of the 3 or 4 users who register with the web site (week7) by using registration form. Authenticate the user when he submits the login form using the user name and password from the database (similar to week8 instead of cookies) WEEK 10: 1. Create a simple XMLHttpRequest, and retrieve data from a TXT file using AJAX 2. Create an XMLHttpRequest to retrieve data from an XML file using AJAX WEEK 11: 1. How a web page can communicate with a web server while a user type characters in an input field. (Retrieve the content of an JSP file) 2. Retrieve content from a database using AJAX. WEEK 12: Design the web pages required for an online book store web site using PHP, AJAX, and HTML5.

147 REFERENCES: 1. Dietel and Dietel, Internet and World Wide Web - How to Program, 5 th Edition, PHI/Pearson Education, 2011 2. Herbert Schildt, The complete Reference Java 2, 8 th Edition, TMH, 2011. 3. Phil Hanna, The Complete Reference JSP, 1 st Edition, TMH, 2003. pqr