If you are looking for best Java training in Chennai and best Pythontraining in Chennai then TUT is Best
Don't wanna be here? Send us removal request.
Text
Javascript lessons
Javascript lessons
Standards For This Class
You should always have some set of base standards when writing a web page. These may be set by your employer and you might come up with some on your own. They would be a part of any template you create so when you start a new page, they will be added to it before anything else.
For this class, your standards will be
· Declaring which version of XHTML will be used in a standard DOCTYPE tag
· Using Dublin Core*
· Using the "author" meta tag
· Including at least one JavaScript™ section
· Comments that tell your name, which homework assignment, and the date
· Including at least one style section
· All work must be compatible with versions 6+ of both major browsers
* — If you went through an HTML course that didn't cover Dublin Core or you have forgotten a few things,
So far, some of these standards would look like this<head profile="http://dublincore.org"> <title><!-- The appropriate title goes here --></title> <!-- Remove this comment after adding the Dublin Core section here --> <meta name="DC.Creator" content="Your Name" /> <!-- Change the value of the content attribute above then remove this comment --> <!-- Use the DC.Subject meta tag to declare which assignment this page is for. --> <meta name="DC.Subject" xml:lang="EN" content="Homework #X" /> <!-- Change the value of the content attribute above then remove this comment --> <!-- Use the DC.Date.X-MetadataLastModified meta tag to provide the date you finished the assignment. --> <meta name="DC.Date.X-MetadataLastModified" content="yyyy-mm-dd" /> <!-- Change the value of the content attribute above then remove this comment --> <!-- Remove this comment after adding the Dublin Core section here. --> <script type="text/javascript" charset="ISO-8859-15"> /* * Title: Homework #X * Created on Month dd, 2007, hh:mm A/PM * * @author Your Name */ </script> <style type="text/css"> /* Remove this comment when you have added styles here */ </style>
The Discussion Forum
Participation in the Discussion Forum (follow this link) is an integral and required part of this class. You are required to make two posts for each homework assignment. This is worth ten points or five points for each of two posts.
Quizzes
All of the quizzes will be taken online. The link for a quiz will usually become active the Saturday before the day the quiz appears on the schedule and will stay active until Sunday night, about 9 days later. Once you start the quiz you will have a limited amount of time to finish, usually two hours. That means you should plan your time well. Please think this through: If I'm making it possible to take a quiz before a given class, that quiz will not be on any material covered in that class. There is no advantage to waiting until after the class that week. You can take the quiz on the first Saturday, if you want.
DO NOT PLAN TO TAKE THE QUIZ DURING CLASS!
Find a time when you will have an uninterrupted two hour block of time. The questions are not meant to be difficult, but I do expect you will probably need to look up some of the answers. Therefore, have all of your resources handy.
In order to take these online quizzes, you will need to sign in with a user name (an email address) and a password. Take a moment right now to take Quiz 0 which includes the means to get me your name, an email address where you want me to send your scores, and a password. Make sure you write down what you send to me so you can actually log in to take the following quizzes.
Lab
All cell phones and pagers MUST be turned off during class and lab. This is something that really bothers many of us. If your work or family absolutely has to be able to contact you during your time here, set your phone to vibrate and let me know before class. You are NOT more important than the rest of us.
Food and/or beverages are not allowed in the lab.
Browsers: FireFox and Microsoft Internet Explorer 6.x+.
The html version and features supported varies by browser and version.
Crimson Editor and Notepad are text editors. WordPad and TextEdit (MAC) are NOT!
Before leaving, shut down all applications, then Windows. Do not just hit POWER!
The new USB "pen" or "keychain" drives work very well to store your files. You may also use one or two 3½" disks. You are responsible for your materials. Losing files is not an excuse for handing in a project late. Back up your work!
The lab computers have software that will restore the computer to the original configuration at every power on. This means if you store your work on the hard drive and turn off the power, all your files cease to exist!
Freeware and Editors
Perhaps the easiest and best editor is the CSE HTML Validator Standard which you can also use in the lab to validate your HTML code. The Lite version is free but it does not do everything the Standard version does and is updated less frequently. The Standard version will validate XHTML and an educational discount is available.
You can get a certificate in the HTC bookstore that will allow you to download a full working Standard version of CSE HTMLValidator. If you purchase this certificate in the first 10 days of the semester, you can get an extra discount ($39). After that, the price will go back to the normal educational discount ($49). Yes, you are responsible to validate your own code. Please check out this CSE HTML Validator Comparison Chart before deciding which to download.
0 notes
Text
javascript programming basics
JavaScript programming Basics
Programming Basics
In just about any programming language, there are a few operations that we can consider to be basic. They might be things like,
input
getting something from the user
output
showing the user something, on the monitor, printer, etc.
calculations
The Unchained Tour offers the best Java training in Chennai, and if you’re from Chennai make sure to check them out for your Java requirements
given some information, figure out an action, result, conclusion, etc.
conditional operations (sometimes called looping)
if, for, while, etc.
variables
something to hold a value
arrays
one basic variable that hold several values
the operating venue
where the program will function (a specific operating system, within another language, etc.)
subroutines (not every language has these)
relegate some of the functions of the program to a special area where they are called over and over again
editing
start from the conceptual and go to the actual
"flowcharting"
know which part of the program has to be done first, second, and so on
proofing
finding your own mistakes
JavaScript™/Java Comparison
JavaScript
Java
Object-based
Object oriented
Interpreted
Compiled
Embedded in html
Independent of html
Loosely typed
(variables do not have to be defined at creation and can change)
Strongly typed
Dynamic binding
(checked at runtime)
Static binding
(checked at compile time)
Prototype based
Class based
All objects are instances.
Class and instance are distinct entities.
Define and create a set of objects with constructor functions.
Define a class with a class definition; instantiate a class with constructor methods.
Create a single object with the new operator.
Same.
Construct an object hierarchy by assigning an object as the prototype associated with a constructor function.
Construct an object hierarchy by using class definitions to define subclasses of existing classes.
Inherit properties by following the prototype chain.
Inherit properties by following the class chain.
Constructor function or prototype specifies an initial set of properties. Can add or remove properties dynamically to individual objects or to the entire set of objects.
Class definition specifies all properties of all instances of a class. No way to add properties dynamically at runtime.
JavaScript™ is …
No need for massive screens or too many pages
The user feels more important
Provide information based on the user's needs
Watch out for the scope of the endeavor!
Make sure you're getting what you need and want
Provide the options that make sense to the user's situation
Limitations
Limited command set
Supported by Mozilla (Navigator, FireFox, etc.) (>2.0)
Supported by IE (>3.0)
Not supported completely or at all by some browsers (Opera, Lynx, etc.)
Cookies are different under Windows, Mac and significant differences occur between IE and FireFox
Document Object Model (DOM)
Cascading Style Sheets (CSS)
Dynamic html
The tag
JavaScript can go in the
... of an html document, in the ... of an html document, or in a separate file stored on the URL server (we'll discuss this option later). Up through XHTML1.0, the proper form for a script tag was
<script type="text/javascript" language="JavaScript">
From XHTML1.1 on, the form will be (this is the form you should use in this class)
<script type="text/javascript" charset="ISO-8859-15">
//JavaScript™ code goes here.
alert("Display a message.")
If All Of This Seems Too Hard
First, consider what some people call a bad day.
It is not the intent to overwhelm you (yet). However, if this course is just not what you expected, you might want to talk to me before you leave today. Remember, you can get a 100% refund only of you withdraw from this course during the first five days of the semester.
1 note
·
View note