Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Re: CSS: Lesson 1: Topic 1A October 19, 2013 11:20AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A October 19, 2013 12:12PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: CSS: Lesson 1: Topic 1A October 20, 2013 09:37AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A October 20, 2013 09:56AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: CSS: Lesson 1: Topic 1A November 04, 2013 04:48PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 10:17AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 10:30AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 11:49AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 12:09PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 12:37PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 02:19PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<htm> <<< Should be <html>, first line should be <!Doctype . . . .>, <head> should go after <html> <title>|| welcome to Charlotte';s website || </title> <<< This should be within the <head></head> section <body bgcolor="green"> <style type="text/css"> .arrowOver{ background-repeat:no-repeat; background-image:url(';images/arrow-over.gif';); color:blue; } </style> <p onmouseover="this.className=';arrowOver';" onmouseout="this.className=';';">Menu</p> <p onmouseover="this.className=';arrowOver';" onmouseout="this.className=';';">Services</p> <p onmouseover="this.className=';arrowOver';" onmouseout="this.className=';';">About</p> <p onmouseover="this.className=';arrowOver';" onmouseout="this.className=';';">Gallary</p> <p onmouseover="this.className=';arrowOver';" onmouseout="this.className=';';">About</p> </body> <<< This cant go here, must be right at the end of your code, just before </html> <div class="logo"> <table width="100%"> <tr> <td></td> </tr> </table> </div> <div class="nevigation"> <table cellpadding="0" cellspacing="0" border="0px"> </htm1> <<<<< Cant go here, must be the last line <!DOCTYPE index.html "-//W3C//DTD XHTML 1.0 Transitional//EN" "[www.w3.org]; <<<<< Must be the first line of code <html xmlns="[www.charlotte.freevar.com]; <<<<< Don';t use XHTML doctype <head> <<<<< Must be at top of page <title>Contact Form</title> <<<<<< You already have a title <link href="formstyle.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> <<<< Don';t need "language" and "type" - they do the same thing. "language" is obsolete, delete it. .myNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; } .my2ndNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; } .my3rdNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 12pt; color: #FF0000; } function checkform(pform1){ var str=pform1.password.value; var email = pform1.email.value; var phone = pform1.phone.value; var cleanstr = phone.replace(/[\(\)\.\-\ ]/g, ';';); var err={}; var validemail =/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; //check required fields //password should be minimum 4 chars but not greater than 8 if ((str.length < 4) || (str.length > 8)) { err.message="Invalid password length"; err.field=pform1.password; } //validate email if(!(validemail.test(email))){ err.message="Invalid email"; err.field=pform1.email; } //check phone number if (isNaN(parseInt(cleanstr))) { err.message="Invalid phone number"; err.field=pform1.phone; } if(err.message) { document.getElementById(';divError';).innerHTML = err.message; err.field.focus(); return false; } return true } </script> </head> <body> <<<< You already have a <body> tag, cannot use it twice <h1>Contact Form Handling with JavaScript</h1> <form action="" method="POST" onsubmit="return checkform(this);"> <div id="errmsgbox"> <div id="divError"></div> </div> <fieldset class="credentials"> <legend>Access Credentials</legend> <table border="0"> <tr> <td><label for="username" class="hover">Username</label></td> <td><input type="text" id="username" class="required text"/> <span class="style1">*</span></td> </tr> <tr> <td><label for="password" class="hover">Password</label></td> <td><input type="password" id="password" class="required text"/> <span class="style1">*</span><br /> <span class="tooltip">Minimum four and maximum eight characters</span> </td> </tr> <tr> <td><label for="email">Email</label></td> <td><input type="text" id="email" class="required email text"/> <span class="style1">*</span></td> </tr> </table> </fieldset> <fieldset> <legend>Other Information</legend> <table border="0"> <tr> <td width="59"><label for="name">Name</label></td> <td width="207"><input type="text" id="name" class="required text"/> <span class="style1">*</span></td> </tr> <tr> <td><label for="phone">Phone</label></td> <td><input type="text" id="phone" class="phone text"/></td> </tr> <tr> <td colspan="2"><input type="submit" value="Submit Form" class="submit"/></td> </tr> <tr> <td colspan="2">* = Required Field</td> </tr> </table> </fieldset> </form> </body> </html> <html> <<<<<< !!!!!!! no, once only at top of page <bottom> <a href="[osprey.unisa.ac.za] Participation</a> <html> <<<<<<<< NO !!!!, last tag must be </html>
Re: CSS: Lesson 1: Topic 1A November 05, 2013 03:08PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 04:26PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 04:27PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 04:42PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 05, 2013 04:44PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<head><center>|| WELCOME TO CHARLOTTE';S WEBSITE || </head></center>
Language: HTML<head> <title><center>|| WELCOME TO CHARLOTTE';S WEBSITE || </center></title>
Language: HTML<html mlns="[www.charlotte.freevar.com]; <<< ????? CANNOT HAVE MORE THAN ONE <html> TAG, and content is nonsense <title>Contact Form</title> <<< Already have a title ??, and <title> must go in the <head> section
Re: CSS: Lesson 1: Topic 1A November 05, 2013 05:00PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: CSS: Lesson 1: Topic 1A November 06, 2013 09:23AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 06, 2013 10:14AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: CSS: Lesson 1: Topic 1A November 06, 2013 03:35PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 06, 2013 05:14PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<!DOCTYPE html> <<<< !Doctype is incomplete <html> <head> <title>|| WELCOME TO CHARLOTTE';S WEBSITE || </title> <body bgcolor="green"> <<<<< You cannot have the <BODY> within the <HEAD> section - see post above for page structure <p class="standardArrow"><a href="#"><img border="0" src="/images/pic1.jpg" alt="pic1" width="1200" height="300"><img</a></p> <style type="text/css"> <<<<< Put <STYLE> in the <HEAD> section .arrowOver{ background-repeat:no-repeat; background-image:url(';images/arrow-over.gif';); color:blue; } </style> <!DOCTYPE html> <<<<<<< You can only have ONE <!Doctype ... >, ONE <HTML> tag, and ONE <HEAD> tag, <html> <<<<<<< Delete these three rows <head> <<<<<<< <style> <<<<<<< What kind of style ? type="tect/css" ul { list-style-type:none; margin:0; padding:0; overflow:hidden; } li { float:left; } a { display:block; width:120px; background-color:#dddddd; } </style> </head>
Language: HTML<body> <<<<< YOU CAN ONLY HAVE ONE <body> tag <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Gallery</a></li> <li><a href="#about">About</a></li> <li><a href="#about">Contact us</a></li> </ul> </body> <<<<<<<< NO </html> <<<<<<<< NO
Language: HTMLif(err.message) { document.getElementById(';divError';).innerHTML = err.message; err.field.focus(); return false; } return true } </script></head> <<<<< NO ONLY ONE </head>, and the next tag MUST be <body> after </head> <h1>Contact Form that uses JavaScript</h1>
Language: HTML<bottom> <<<<<<< No such tag <a href="[osprey.unisa.ac.za] Participation</a> </body> </html>
Quote
<!Doctype . . . .>
<html>
<head>
<title>
"Title goes here"
</title>
JavaScript functions etc goes here
</head>
<body>
Content goes here
</body>
</html>
Re: CSS: Lesson 1: Topic 1A November 08, 2013 07:43AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 08, 2013 08:34AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<body> <body bgcolor="green">
Language: HTML<script language="javascript" type="text/javascript">
Language: HTML<link href="formstyle.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript">
Language: HTML<!DOCTYPE index.html "-//W3C//DTD HTML 1.0 Transitional//EN" "[www.w3.org];
Language: HTML<p class="standardArrow"><a href="#"><img border="0" src="/images/pic1.jpg" alt="pic1" width="1200" height="300"><img</a></p>
Re: CSS: Lesson 1: Topic 1A November 08, 2013 11:28AM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 08, 2013 11:55AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<!DOCTYPE index.html "-//W3C//DTD HTML 1.0 > Transitional//EN" "[www.w3.org];> > <html> > <head> > <title>|| WELCOME TO CHARLOTTE';S WEBSITE || > </title> > <style type="text/css"> > .arrowOver{ > background-repeat:no-repeat; > background-image:url(';images/arrow-over.gif';); > color:blue; } > ul > { > list-style-type:none; > margin:0; > padding:0; > overflow:hidden; > } > li > { > float:left; > } > a > { > display:block; > width:120px; > background-color:#dddddd; > } > </style> > </head> > <<<<<< Must have <body> after </head> > <div class="logo"> > <table width="100%"> > <tr> > <td></td> > </tr> > </table> > </div> > <div class="nevigation"> <<<<< Spelling ? > <table cellpadding="0" cellspacing="0" > border="0px"> > <Contact Form> <<<<< What is this ??? Delete it > <link href="formstyle.css" rel="stylesheet" <<<<<< Put this in the <head> section > type="text/css" /> > <script language="javascript" <<<<<< And all of this > type="text/javascript"> > .myNewStyle { > > font-family: Verdana, Arial, Helvetica, > sans-serif; font-weight: bold; > > color: #FF0000; > > } > > .my2ndNewStyle { > > font-family: Verdana, Arial, Helvetica, > sans-serif; > > font-weight: bold; > > color: #FF0000; > > } > > .my3rdNewStyle { > > font-family: Verdana, Arial, Helvetica, > sans-serif; > > font-weight: bold; > > font-size: 12pt; > > color: #FF0000; > > } > > function checkform(pform1){ > var str=pform1.password.value; > var email = pform1.email.value; > var phone = pform1.phone.value; > var cleanstr = phone.replace(/[\(\)\.\-\ ]/g, > ';';); > var err={}; > var validemail > =/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/ > ; > > //check required fields > //password should be minimum 4 chars but not > greater than 8 > if ((str.length < 4) || (str.length > 8)) { > > err.message="Invalid password length"; > err.field=pform1.password; > } > > //validate email > if(!(validemail.test(email))){ > err.message="Invalid email"; > err.field=pform1.email; > } > > //check phone number > if (isNaN(parseInt(cleanstr))) { > err.message="Invalid phone number"; > err.field=pform1.phone; > } > > if(err.message) > { > document.getElementById(';divError';).innerHTML = > err.message; > err.field.focus(); > return false; > > } > > return true > } > </script> > <h1>Contact Form that uses JavaScript</h1> > > <form action="" method="POST" onsubmit="return > checkform(this);"> > > <div id="errmsgbox"> > > <div id="divError"></div> > > </div> > > <fieldset class="credentials"> > <legend>Access Credentials</legend> > > <table border="0"> > > <tr> > <td><label for="username" > class="hover">Username</label></td> > <td><input type="text" id="username" > class="required text"/> > <span class="style1">*</span></td> > </tr><tr> > <td><label for="password" > class="hover">Password</label></td> > <td><input type="password" id="password" > class="required text"/> > <span class="style1">*</span><br /> > <span class="tooltip">Minimum four and maximum > eight characters</span> </td> > </tr> > <tr> > <td><label for="email">Email</label></td> > <td><input type="text" id="email" class="required > email text"/> <span class="style1">*</span></td> > </tr> > </table> > </fieldset> > <fieldset> > <legend>Other Information</legend> > <table border="0"> > > <tr> > <td width="59"><label > for="name">Name</label></td> > <td width="207"><input type="text" id="name" > class="required text"/> > <span class="style1">*</span></td> > </tr> > <tr><td><label for="phone">Phone</label></td> > <td><input type="text" id="phone" class="phone > text"/></td> > </tr> > > <tr> > <td colspan="2"><input type="submit" value="Submit > Form" class="submit"/></td> > </tr> > > <tr> > <td colspan="2">* = Required Field</td> > </tr> > </table> > </fieldset> > </form> > > </style> > </head> <<<<< Cant go here - Your form etc must be in the <body> section, NOT in the <head> > > > > > <body bgcolor="green"> <<<< Your form is above this, that is why it displays first > <ul> > <li><a href="#home">Home</a></li><li><a > href="#news">News</a></li> > <li><a href="#contact">Gallery</a></li> > <li><a href="#about">About</a></li> > <li><a href="#about">Contact us</a></li> > </ul> > <p class="standardArrow"><a href="#"><img > border="0" src="/images/pic1.jpg" alt="pic1" > width="1200" height="300"><img</a></p> > <<<< Put the form here ? > <a > href="http://osprey.unisa.ac.za/phorum/read.php?75 > 4,183312,183312#msg-183312">Active > Participation</a> > </body> > </html>
Re: CSS: Lesson 1: Topic 1A November 08, 2013 05:41PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 08, 2013 07:50PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<link href="formstyle.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> <<<<< Delete language="javascript" . It means the same as type="javascript" .myNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font- -eight: bold; <<<< Should be font-weight: color: #FF0000; } .my2ndNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; } .my3rdNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 12pt; color: #FF0000; } function checkform(pform1){ var str=pform1.password.value; var email = pform1.email.value; var phone = pform1.phone.value; var cleanstr = phone.replace(/[\(\)\.\-\ ]/g, ';';); var err={}; var validemail =/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; //check required fields //password should be minimum 4 chars but not greater than 8 if ((str.length < 4) || (str.length > 8)) { err.message="Invalid password length"; err.field=pform1.password; } //validate email if(!(validemail.test(email))){ err.message="Invalid email"; err.field=pform1.email; } //check phone number if (isNaN(parseInt(cleanstr))) { err.message="Invalid phone number"; err.field=pform1.phone; } if(err.message) { document.getElementById(';divError';).innerHTML = err.message; err.field.focus(); return false; } return true } </script>
Language: HTML<table border="0" align="center">
Re: CSS: Lesson 1: Topic 1A November 09, 2013 12:27PM |
Registered: 10 years ago Posts: 31 Rating: 0 |
Re: CSS: Lesson 1: Topic 1A November 09, 2013 01:41PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Language: HTML<!DOCTYPE index.html "-//W3C//DTD HTML 1.0 Transitional//EN" "[www.w3.org];> <html> <head> <title>|| WELCOME TO CHARLOTTE';S WEBSITE || </title> <style type="text/css"> .arrowOver{ background-repeat:no-repeat; background-image:url(';images/arrow-over.gif';); color:blue; } ul { list-style-type:none; margin:0; padding:0; overflow:hidden; } li { float:left; } a { display:block; width:120px; } </style> <link href="formstyle.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> .myNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; } .my2ndNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FF0000; } .my3rdNewStyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 12pt; color: #FF0000; } function checkform(pform1){ var str=pform1.password.value; var email = pform1.email.value; var phone = pform1.phone.value; var cleanstr = phone.replace(/[\(\)\.\-\ ]/g, ';';); var err={}; var validemail =/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; //check required fields //password should be minimum 4 chars but not greater than 8 if ((str.length < 4) || (str.length > 8)) { err.message="Invalid password length"; err.field=pform1.password; } //validate email if(!(validemail.test(email))){ err.message="Invalid email"; err.field=pform1.email; } //check phone number if (isNaN(parseInt(cleanstr))) { err.message="Invalid phone number"; err.field=pform1.phone; } if(err.message) { document.getElementById(';divError';).innerHTML = err.message; err.field.focus(); return false; } return true } </script> </head> <body bgcolor="green"> <ul> <li><a href="#home">Home</a></li><li><a href="#news">News</a></li> <li><a href="#contact">Gallery</a></li> <li><a href="#about">About</a></li> <li><a href="#about">Contact us</a></li> </ul> <p class="standardArrow"><a href="#"><img border="0" src="/images/pic1.jpg" alt="pic1" width="1200" height="300"><img</a></p> <div class="logo"> <table width="100%"> // <<< What is this table for ? <tr> <td></td> </tr> </table> </div> <fieldset class="credentials"> <legend>Access Credentials</legend> <div class="nevigation"> // Where does this <div> end ? <table cellpadding="0" cellspacing="0" border="0px" align="center"> // <<< Where does this table end ? <h1>Contact Form </h1> // <<< These elements are not within table cells <form action="" method="POST" onsubmit="return checkform(this);"> <div id="errmsgbox"> <div id="divError"></div> </div> <table border="0"> <tr> <td><label for="username" class="hover">Username</label></td> <td><input type="text" id="username" class="required text"/> <span class="style1">*</span></td> </tr> <tr> <td><label for="password" class="hover">Password</label></td> <td><input type="password" id="password" class="required text"/> <span class="style1">*</span><br /> <span class="tooltip">Minimum four and maximum eight characters</span> </td> </tr> <tr> <td><label for="email">Email</label></td> <td><input type="text" id="email" class="required email text"/> <span class="style1">*</span></td> </tr> </table> </fieldset> <fieldset> <legend>Other Information</legend> <table border="0"> <tr> <td width="59"><label for="name">Name</label></td> <td width="207"><input type="text" id="name" class="required text"/> <span class="style1">*</span></td> </tr> <tr><td><label for="phone">Phone</label></td> <td><input type="text" id="phone" class="phone text"/></td> </tr> <tr> <td colspan="2"><input type="submit" value="Submit Form" class="submit"/></td> </tr> <tr> <td colspan="2">* = Required Field</td> </tr> </table> </fieldset> </form> <a href=http://osprey.unisa.ac.za/phorum/read.php?754,183312,183312#msg-183312> Active Participation</a> <address> Visit us atsad smileycharlotte.freevar.com) Tzaneen,Agatha street no 10 P.O.Box 1486, Tzaneen 0850 Limpopo Province,Tell:015 307 8045 <br> </address> </body> </html>
Re: CSS: Lesson 1: Topic 1A November 09, 2013 02:07PM |
Registered: 10 years ago Posts: 31 Rating: 0 |