Friday 29 August 2014

VTU CSE/ISE WEB PROGRAMMING LAB MANUAL

WEB PROGRAMMING LABORATORY 7th SEM


Subject Code : 06CSL78
IA Marks : 25
No. of Practical Hrs./ Week : 03
Exam Hours : 03
Total No. of Practical Hrs. : 42
Exam Marks : 50







1. Develop and demonstrate a XHTML document that illustrates the use
external style sheet, ordered list, table, borders, padding, color, and the
tag.

2. Develop and demonstrate a XHTML file that includes Javascript script
for the following problems:
a) Input: A number n obtained using prompt
Output: The first n Fibonacci numbers
b) Input: A number n obtained using prompt
Output: A table of numbers from 1 to n and their squares using alert

3. Develop and demonstrate a XHTML file that includes Javascript script
that uses functions for the following problems:
a) Parameter: A string
Output: The position in the string of the left-most vowel
b) Parameter: A number
Output: The number with its digits in the reverse order

4. a) Develop and demonstrate, using Javascript script, a XHTML
document that collects the USN ( the valid format is: A digit from 1 to 4
followed by two upper-case characters followed by two digits followed by
two upper-case characters followed by three digits; no embedded spaces
allowed) of the user. Event handler must be included for the form element
that collects this information to validate the input. Messages in the alert
windows must be produced when errors are detected.
b) Modify the above program to get the current semester also
(restricted to be a number from 1 to 8)

5. a) Develop and demonstrate, using Javascript script, a XHTML
document that contains three short paragraphs of text, stacked on top of
each other, with only enough of each showing so that the mouse cursor
can be placed over some part of them. When the cursor is placed over the
exposed part of any paragraph, it should rise to the top to become
completely visible.
b) Modify the above document so that when a paragraph is moved from
the top stacking position, it returns to its original position rather than to
the bottom.

6. a) Design an XML document to store information about a student in an
engineering college affiliated to VTU. The information must include
USN, Name, Name of the College, Brach, Year of Joining, and e-mail id.
Make up sample data for 3 students. Create a CSS style sheet and use it to
display the document.
b) Create an XSLT style sheet for one student element of the above
document and use it to create a display of that element.

7. a) Write a Perl program to display various Server Information like
Server Name, Server Software, Server protocol, CGI Revision etc.
b) Write a Perl program to accept UNIX command from a HTML form
and to display the output of the command executed.

8. a) Write a Perl program to accept the User Name and display a
greeting message randomly chosen from a list of 4 greeting messages.
b) Write a Perl program to keep track of the number of visitors visiting
the web page and to display this count of visitors, with proper headings.

9. Write a Perl program to display a digital clock which displays the
current time of the server.

10. Write a Perl program to insert name and age information entered by
the user into a table created using MySQL and to display the current
contents of this table.

11. Write a PHP program to store current date-time in a COOKIE and
display the ‘Last visited on’ date-time on the web page upon reopening of
the same page.

12. Write a PHP program to store page views count in SESSION, to
increment the count on each refresh, and to show the count on web page.

13. Create a XHTML form with Name, Address Line 1, Address Line 2,
and E-mail text fields. On submitting, store the values in MySQL table.
Retrieve and display the data based on Name.

14. Using PHP and MySQL, develop a program to accept book
information viz. Accession number, title, authors, edition and publisher
from a web page and store the information in a database and to search for
a book with the title specified by the user and to display the search results
with proper headings.

No comments:

Post a Comment