Saturday, 28 March 2015

XML program to display the Book details With Table

Program:

Read: Download free Java Server E-book

<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/xsl" href="catalog_xsl.xsl" ?>
<Catalog>
    <Book>
        <Title>XML Bible</Title>
        <Author>Winston</Author>
        <Publication>Wiely</Publication>
       

XML program to display the book catalogue

Program:


<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/css" href="library.css" ?>
<Catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="catalog.xsd">
    <Book>
        <Title>XML Bible</Title>
       

Friday, 20 March 2015

HTML program for employee details with data

program:


<xml id="movies">
    <?xml version="1.0"?>
    <movies>
        <movie>
            <name>&lt;b&gt;Clark Kent&lt;/b&gt;</name>
            <jobtitle>Superman</jobtitle>
            <born>1966</born>
        </movie>
       

HTML program for employee details table

program:


<html>
<body>
<h1 style="background-color:blue;color:white;text-align:center">Employee Details</h1>
<xml id="emp records" src="employee.xml">
</xml>
<table id=etable name=emp width=100% border=2 bordercolor=red bg=cyan cellpaddding=0
       datasrc=#emprecords>
    <thead>
    <tr>
     

Friday, 13 March 2015

Javascript validation for registration form

Program:


<html>
<head>
<title>Registration form</title>
<script language="javascript">
function validate()
{
   var name=document.forms[0].elements[0].value;
   var pwd=document.forms[0].elements[1].value;
   var email=document.forms[0].elements[2].value;
   var phno=document.forms[0].elements[3].value;