Free Essay

Web Technology

In: Computers and Technology

Submitted By thilanmaduranga
Words 1110
Pages 5
JavaScript * JavaScript was designed to add interactivity HTML pages * JavaScript is a scripting language. * JavaScript is usually embedded directly into HTML pages. * JavaScript is an interpreted language (means that scripts execute without preliminary compilation).

* The Real Name is ECMAScript * JavaScript is an implementation of the EMAScript language standard. * EMCMAScript is developed and maintained by the ECMA organization. * ECMA-262 is the official JavaScript standard.

* First Code

The document.write command is a standard JavaScript command for output to a page.

* How to use comments

// Single line comment

/* Multiline comment
*/

* Where to put the JavaScript? * JavaScript in a page will be executed immediately the page loads into the browser. * We can execute a script when a page loads, or at a later event, such as when a user clicks a button. * When this is the case we put the script inside function.

* Script in <head> * Script to be executed when they are called, or when an event is triggered, are placed in functions. * It is a good practice to put all your function in the head section.

* Create a Alert Box

* Using an Extrenal JavaScrpt

* JavaScript can also be placed in external files. * External JavaScript files also often contains code to be used on several different web pages. * Extrenal JavaScript files have the file Extension .js. * External script cannot contain the <script></script> tags. * To use external script, point to the .js file in the “src” attribute of the <script> tag.

* How to use a JavaScript File to HTML File

In .js File

* JavaScript Variables Note-Var means Variable.

* Assigning Values to Undeclared JavaScript Variables
If you assign values to variables that have not yet been declared, the variables will automatically be declared. Note- JavaScript is Case sensitive. * If Statement

* Switch Statement

Note – We can put String Values also into a Switch statement.

* How to put a Alert box in to a Button action * How to create a Confirm Box

* How to create a Prompt Box * Argument passing

* Loops in JavaScript
FOR Joop While Loop DoWhile Loop * Java key words in javaScripts Break KeyWord Continue Key Word

* Array declaration in JavaScript
Regular array(add an optional integer argument to control array’s size)

In java we called for this FOREACH for loop. But in JavaScript we called it as a FORIN for loop

Condensed array

Literal array

Access an Array
You can refer to a particular element in an array by referring to the name of the array and the index number. Note: The index number starts at 0.

* Events in JavaScript * Events are actions that can be detected by JavaScript. * Every element on a web page certain events which can trigger a JavaScript. * We define the events in the HTML tags. * Events are normally used in combination with functions. * The function will not be executed before the event occurs.

onLoad and onUnLoad * The onLoad ane UnLoad events are triggered when the user enters or leaves the page. * The onLoad events is often used to check the visitor’s browser type and browser version, and load the porper version of the web page based on the Information. * Both the onLoad and UpLoad events are also often used to deal with cookies that should de set when a user enters or leaves a page.

onFocus, onBlur and onChange * The onFocus, onBlur and onChange events are often used in combination with validation of from fields.

onSubmit
The onSubmit event is used to validate ALL from fields before submitting it.
Below is an example of how to use the onSubmit event.
The checkText() function will be called when the user clicks the submit button in the from.
If the function checkTect() returns either true or false.
If it return true the from will be submitted, otherwise the submit will be canceld. onMouseOver and onMouseOut * onMouseOver and onMouseOut are often used to create “animated” buttons.

* Object Oriented Programming in JavaScript * JavaScript is an Object Oriented Programming (OOP) language. * An OOP language allows you to define your own object and make your own variable type. * We will start by lookin at the build-in JavaScript object in detail. * Note that an object is just a special kind of data. * An object has properties and methods.

* Length code in JavaScripts

* UpperCase in JavaScript

* Create a Date Object
The Date object is used to work with dates and times.
Date object are created with the Date() constructor.
There are four ways of instantiating a date. newDate() current date and time newDate(milliseconds) milliseconds since 1970/01/01 newDate(dateString) newDate(year,month,day,hours,minutes,seconds,milliseconds) * Most parameters above are optional. * Once a date object is created, a number of methods allow you to operate on it. * Most methods allow you to get and set the year, month, day, hour, minute, second, and milliseconds of the object, using either local time or UTC (universal, or GMT) time. * All dates are calculated in milliseconds from 01 January, 1970. * 00:00:00 Universal Time (UTC) with a day containing 86,400,000 milliseconds.

* How to put text in button action

* Boolean Object in JavaScript
All the following lines of code create Boolean objects with an initial value of false.

And all the following lines of code create Boolean objects with an initial value of true.

* JavaScript RegExp Object
A regular expression an object that describe a pattern of characters.
When you search in a text, you can use a pattern to describe what you are searching for.
A simple pattern can be one single charter.
A more complicated pattern can consist of more characters, and can be used for parsing, format checking, substitution and more.

The marked text below shows where the expression gets a mach
Do a case-insensitive search for “thilan” in a string.
‘i’ means Insensitive and prints only one search thing.

‘g’ means it can search and print all the matching things.

‘gi’ means insensitive and prints all the matching things.

The test() method
The test() method searches a String for a spesified value, and return true or false, depending on the result.

* How to get Browser Information in JavaScript

* How to get text from a text Field

* How to create a Time Counter * How to link to another site

* How to get user screen information

* How to open a new window

How to create a Window, close & move it

* How to resize a window

Also we can put resizeTo() method for this.

* How to print a page

* How to create a changing icons

* Exception handling in JavaScript
In this “aaaalert” is not a javaScript key word or a method.

* We can catch several exceptions at one try…...

Similar Documents

Free Essay

Af 302 Essay on Web 2.0 Technologies

...Introduction Web 2.0 refers to a variety of websites and applications that allow people to create, share, collaborate and communicate. Web 2.0 unlike from other types of websites as it does not require any web design or publishing skills to participate, making it easy for people to create and publish or communicate their work to the world. The nature of this technology makes it easy and popular way to communicate information to a much wider audience. There are number of different types of web 2.0 applications including wikis, blogs, social networking, folksonomies, podcasting & content hosting service, YouTube, Facebook, MySpace, and Flickr (Thomson, 2008). However, despite it greater advantageous to our world today, there are some threats involved on the other hand. In this essay, I will discuss some number of privacy and ethical issues associated with the use of this type of technologies. As well some threats such technologies pose for small Pacific Island communities. Lastly, I will discuss the reasons why a privacy bill should or should not be adopted in the Pacific. Ethical and privacy issues related with the use of web 2.0 technologies? Copyright is one of a major issue related with the use of web 2.0 technologies. This ethical issue is referring to copy of others information illegally, by means without the permission of the copyright holder. Using of web 2.0 technologies like Facebook, you tube and other applications nowadays are rapidly growth all over the world...

Words: 774 - Pages: 4

Premium Essay

Web Technology

...FACULTY OF SCIENCE UNIVERSITY OF KRAGUJEVAC WEB TECHNOLOGY Mentor: Author: Radmila Paunovic-Stajn Aleksandar Stefanovic 81/11 Kragujevac, 2011 INTRODUCTION WWW (World Wide Web) represents the most significant revolution in the mass media since the beginning of the television. Made by Tim Berners in the Cern laboratory in Switzerland in 1989 as an application which should provide on-line exchange of information among scientists. WEB gets the correct meaning in 1993. when MOSAIC WEB BROWSER appeared. MOSAIC WEB BROWSER was developed by Mark Anderson, student of Illinois University, and he later became the owner of Netscape protocol. In 1994. when first graphical browser Mosaic appeared, pages of internet were made by developers who have sufficient understanding of HTML (Hyper Text Markup Language), and graphic artists and web design experts did not exist as a form of occupation. Most of the early web sites did not have an intuitive interface and attractive design. Most important to any owner of the page was that it works, and that the code is done well. It was hard to come up with links and informations, but it did not matter. In 1996, things changed. There were two types of web developers: site designers who took care of more intuitive layout and graphic designers who understand the power of color on the site. HTML code is expanded, so that the page design has become......

Words: 2028 - Pages: 9

Premium Essay

Web 2.0

...Web 2.0 Web 2.0 is a term describing changing trends in the use of World Wide Web technology and web design that aims to enhance creativity, information sharing, and collaboration among users. These concepts have led to the development and evolution of web-based communities and hosted services, such as social-networking sites, video sharing sites, wikis, blogs, and folksonomies. The term became notable after the first O'Reilly Media Web 2.0 conference in 2004. Although the term suggests a new version of the World Wide Web, it does not refer to an update to any technical specifications, but to changes in the ways software developers and end- users utilize the Web. Basically, the term encapsulates the idea of the proliferation of interconnectivity and social interactions on the Web. Tim O'Reilly regards Web 2.0 as business embracing the web as a platform and using its strengths. The features that encompasses the essence of Web 2.0 are building applications and services around the unique features of the Internet, as opposed to building applications and expecting the Internet to suit as a platform. Web 2.0 websites allow users to do more than just retrieve information. They can build on the interactive facilities of "Web 1.0" to provide "Network as platform" computing, allowing users to run software applications entirely through a browser. While Web 2.0 technologies are difficult to define precisely, the outline of emerging applications has become clear over the past year. We......

Words: 1470 - Pages: 6

Premium Essay

Reasons Why Managers Need to Be Acquainted with Programming, Web Source Code, and Technology.

...age, it is also important for a manager to be knowledgeable about his or her company’s web presence. The web is a platform that most if not every business should strive to maintain (Ebrahimi, 2005). A manager may wish to be involved with such things as creating web content and marketing. Knowledge of how database and source code relate can help a manager understand the job responsibilities of the business’s web development department. With this information, he or she might be more realistic about deadlines and what company objectives can be reasonably accomplished within a particular timeframe. As a secondary benefit, one might expect to establish improved relations with employees, who recognize that their superiors are making an effort to understand the nature of their work. Familiarity with information technology is very important for a manager in most organizations. It is hard to imagine a business that does not utilize some form of technology to maintain a competitive edge in their industry. Managers must be aware of the newest technology and understand its benefits and limitations (Meyers, 2011). The explosion of technology has led to an economic globalization where the transmission of information is no longer limited by space and time. Managers must continually utilize this flow of information efficiently to maximize their performance. In conclusion, in a technology fueled economy, it’s apparent that a manager must be tech-savvy if they want to......

Words: 490 - Pages: 2

Free Essay

Web Design

...offer. Successful web design relies heavily upon a visual concept. Without effective visual design, almost everything on the internet is meaningless. It is visual design that grabs people's attention and encourages them to analyze the piece more carefully. The internet is a primarily visual realm, which is why interactivity, visual elements, and new technologies are such important aspects of great web design. “Since the 1990s (and really, for a select few people, even before that) website design was something that developed very, very quickly and changed rapidly over time. Website companies across the board have taken time and care to make sure that they are innovative and pushing boundaries, while also providing for viewers, visitors, and customers everything that they could possibly need to get the most out of their respective websites and other uses. Today, HTML5 looks poised to be one of the website designs of the future, but how exactly did we get here to where we are? And where have we come from with web design theory and practice, to reach 2013? Back in the early 1990s, HTML (the first iteration) was considered major website technology and innovation. Since then, CSS 1 and CSS 2, Javascipt, Flash, XHTML1, and even AJAX more recently have all come under as the hottest new thing in web design, some lasting mere months before something better innovated across the board. To get to where you are, though, you must know where you’ve come from – and with web design, that......

Words: 3287 - Pages: 14

Premium Essay

Internet Technology and Web Browsers

...Internet Technology and Web Browsers American Military University How internet technology and web browsers have affected our daily lives. Today the internet touches every corner of the globe, and often is the main way an everyday person obtains information and communicates at home, school, or place of business. We can see how internet technology affects the entire globe by just a few simple clicks of a mouse or a simple touch of a screen with in a web browser to see a webcam in the arctic to teaching school kids in India. None of this would be possible without the idea of them being able to create hardware to connect computers to share their information with one another. Local area networks, wide area networks, and metropolitan area networks are computer networks that range in different geographic sizes and functions. We use them to communicate using devices such as computers, cell phones, and game consoles. These machines have worked their way into our daily lives through the way we work, live, and play with most people not even knowing the larger impact on how they shape our lives. This concept of information passing between computers has been around since the 1960s with universities obtaining more and more computers. Then the 1970s designed the standard for implementing how computers talk to one another using the OSI model and the suite of protocols called the transmission control protocol/internet protocol (TCP/IP)......

Words: 1764 - Pages: 8

Free Essay

Web Conferencing

...Web Conferencing Programs Research Memo Web Conferencing Introduction: The technology today has larger scope with the use of dedicated internet access and private line services. It is through a dedicated bandwidth connection of internet that web conferencing can be made possible. The method of communication is easy getting in touch with people over the internet. It can as well reduce the travel cost and save your company's money for any engagement or business meetings out of town. In addition to the benefit of saving company's money is the privilege of every employee to participate in the meeting. The real time sharing of ideas as well and data transmission become easy to complete everyday tasks. With web conferencing as well it can easily counteract with the people who lack physical participation through the use of the tools provided in the services. Adobe Connect for Web Meetings: Adobe® Connect™ is an enterprise web conferencing solution for online meetings, eLearning, and webinars used by leading corporations and government agencies. And it's based on Adobe Flash® technology, so you can deliver rich interactions that participants can join easily. Adobe Connect allows your teams to work more efficiently, increasing productivity and helping reduce costs. * Ensure easy meeting access for all participants * Enable rich, highly collaborative interactions * Manage meetings and content more effectively * Meet your organization's security and compliance......

Words: 875 - Pages: 4

Premium Essay

Web Solution

...Web-Based Solution Overview of Business & Web-Based Solution In this paper, TNV Bank selects for this paper that is the imagined banks. This bank is established in the US and providing their banking products and services in the US and others countries. TNV related to the banking industry and it generates revenues through different ways such as interest, transaction charges, services fees and provides financial advice. The main method of generate revenue is charging interest on the capital and lending activities. This bank provides different types of the financial products and services of the customers including saving account, current accounts, personal loans, home loans, foreign exchange services, credit and debit cards, online and NRI Services, cash management, treasury services, insurance and investment options. The company's strategic vision is becoming largest banks of the US in terms of numbers of customers and generates revenues through reach and connects with the more people. The main stakeholders of TNV bank are board of directors, management, employees, shareholders, customers and government. TVN banks established its offices in the all major cities of the US to distribute its financial products and services of the customers. The company operations strategy is using latest technology to provide best services of the customers at the right place with less time. American Express, Ally Financial, Regions Financial, RBS Citizen Financial Group, BMO Financial......

Words: 2392 - Pages: 10

Free Essay

Web Systems and Technologies

...Web Accessibility Initiative's Accessible Rich Internet Applications: Bridging Technology Shelia S Bradley IT3210 Web Systems and Technologies Dr. Azad Ali 26 January 2014 Web Accessibility Initiative’s Accessible Rich Internet Applications (WAI-ARIA) is a technical guide published by the World Wide Web that is typically supposed to make web content and web applications more accessible by people with disabilities. It acts as a bridge between the web content and applications and technology giving the two the availability to exchange messages easily. The purpose that ARIA was created was so that developers can use the latest web technologies to make sure that people with disabilities are able to use the assistive technology products to access the content on their web pages. New technology allows the use of dynamic content that allows web pages to constantly update and refresh, such as weather updates for the local news websites, bank account balances for online banking, stock market data, and sports scores for sports sites like ESPN. There are many features of WAI-ARIA that gives more control to the web page developers by allowing them to specify different features on the document such as ‘banner’, ‘menu’, ‘navigation’, and ‘search’. These tags give the user the ability to determine what information the tags may provide without having to guess and eliminating the need to have to search the entire page until they find the information needed. According to Henry (2013)...

Words: 380 - Pages: 2

Premium Essay

Web Mining

...Draft By Daniel Nunez Nov 23, 2014 WEB MINING A. INTRODUCTION The abundant data present in the World Wide Web (web for short) through the internet is vast on useful information. User-specific information of how they interact with the Web and system-specific data of how the Web is structured as more and more bytes of information get uploaded and shared through the Web are examples of how there is vital information to be studied and reflected upon with the means of finding deep, valuable, new knowledge that could potentially make numerous computer enterprises increasingly effective. The “figuring out” of what is relevant, yet unknown in large sets of data through observation and analysis is the task of data mining. Data mining relies on sophisticated approaches and methods, such as artificial intelligence, statistical deduction and induction, information retrieval and natural language processing (NLP) [2], of going through large amount of organized or unorganized data to find “capitalizeable” patterns and potentially useful information. With this preliminary description of data mining partial intricacies, I proceed to define Web mining as the application of data mining practices to search and find, filter, extract and assess [4] Web data to better understand its contents, structure, usage[1][2][3][4] and processes[4]. Web mining practices have been classified between three qualitative categories: Web content, Web structure, and Web usage [1][2][3][4]. With each......

Words: 797 - Pages: 4

Premium Essay

Web Application

...Web Application CIS/207 Web Application Since its inception for public use, the internet has grown to an enormous size. According to the United States Census close to 80 percent of individuals over 15 years of age are connected to the internet (US Census, 2012). 8 out of 10 people are using smart phone technology or have some type of connected device that allows them to update or browse online media. One of the popular web applications hot in the market today is social media. From the world of blogging came a medium that allows people to maintain constant to-the-second updates on the world around them. The top three examples of social media applications are Facebook, Twitter, and Pinterest. Facebook is leading this market with three times the monthly traffic compared to its competitors (eBiz, 2014). Facebook Facebook was established at Harvard University by Mark Zuckerberg in 2004 as a college campus social blogging site. Zuckerberg hacked the university website to obtain pictures of students and posted them on his website for users to view and make comments. This evolved into a social web application that spread to universities all over the United States. He reorganized and recoded the application into what is known today as Facebook. Facebook is a web application that allows users to sign up for a personal profile page. Users can communicate with other users through private and public chat or postings. Users can post pictures, create a profile, and update their......

Words: 774 - Pages: 4

Premium Essay

Web 3.0

...WEB 3.0 FOR MASTERS IN APPLIED SCIENCE Information Communication and Technology MONIKA NEKKANTI UNIVERSITY OF DENVER UNIVERSITY COLLEGE FACULTY: STEVE STARLIPER DIRECTOR: TOM TIERNEY ICT 4005 Technical Foundations. October28, 2014 ABSTRACT Web systems are the fast growing and more demanded ones these days. Everyone rely upon it daily for any of their work that might be study, business, personal or entertainment purpose. Whatever the purpose is user expects a well organized, fast and intelligent communication with the system he/she uses. That is where web 3.0 comes into picture. This paper gives a clear idea about web 3.0 which can be easily understood by a newbie too. How intelligent web systems work and what all components and methods, how they work and make the web system intelligent. It even covers about some fallacies people make while choosing an algorithm for their web system and also discusses how it benefits the user and makes his/her work easy. This gives a quick idea about the internal functioning of the web system and limitations. TABLE OF CONTENT 1. INTRODUCTION 1 2. EVOLUTION OF WEB 2 a. WEB 1.0 2 b. WEB......

Words: 3973 - Pages: 16

Premium Essay

The Origins of Web Technology

...that no one person invented the internet, Bob Khan and Vint Cerf are most attributed to this achievement. In 1972-1973, these two gentlemen worked together to create what is called the Transmission Control Protocol which is used in the modern internet to transport data. The World Wide Web is one of many applications of the Internet. “The WWW project is based on the principle of universal readership: ‘if information is available, then any (authorized) person should be able to access it from anywhere in the world’” (Zeltser). This idea of “universal readership” was recognized as important and even essential by many people before it was materialized and finalized by Tim Berners-Lee in November of 1990 with the help of Robert Cailliau. The proposal presented by these two gentlemen explained the “WorldWideWeb” as a figurative “web” of documents composed of hypertext. The hypertext markup language (abbreviated HTML) is accepted as the primary markup language. HTML is an essential part of the makeup of every internet web page seen today on the World Wide Web.  WEB TECHNOLOGIES [pic] HTML HTML is a markup language designed to structure information for presentation as web pages. Rather than relying on WYSIWYG programs, we write all our HTML by hand, ensuring that it is clean, valid and of the highest standard. This means that pages have fastest download times possible, are viewable on all browsers, are search engine friendly, and have maximum forward......

Words: 484 - Pages: 2

Free Essay

Web Technologies Usability and Standards Compliance

...random character ‘w’ which was an error in the text about the handicap race distances. I also deleted the html word, which was appearing randomly on this web page. Data template Greater usability was achieved by amending the code for the data page holding the running competition results. This web page was appearing in the web browser with an untitled page tab, so I amended this in the title coding to show/read “Open University Running Club” to assist a user to identify that they are still on the OURC website. I amended the coding around competition results by using the table attribute and increasing the border setting from 0 to 1, which allowed users to read the competition results more clearly, as each column and row of the table is now separated by a border. This should also make it easier for anyone accessing the data from a mobile or other web accessible device. (c) In your own words, describe your understanding of both valid XHTML and valid CSS and explain the nature of the changes you made to the files provided to achieve standards-compliant coding of the prototype website. XHTML and CSS are both programming languages used in the design and development of web pages. They both fulfil different functions and follow different sets of rules and coding methods, whilst at the same time combining to form web pages that are efficient and accessible. For XHTML and CSS to be classified as valid the code they contain must be validated on the W3org validator......

Words: 876 - Pages: 4

Free Essay

Web 2.0

...Web 2.0 XBIS/219 Web 2.0  How would you describe Web 2.0 to someone who has not taken a course in information systems? What are the advantages and disadvantages of Web 2.0? How has Web 2.0 impacted business? The best way to explain Web 2.0 to someone lacking the knowledge thereof, should first understand that Web 2.0 is not a new type of web, it is more of an enhancement of the web experience by a vast collection of information technologies and applications that allows web users to interact socially, collaboratively, and more or less the ability to participate with ease, as these technologies and applications encourage users to do so. Web 2.0 allows Web users to be a part of the development and growth of different websites and the web, instead of just visiting a website and browsing through its information. Different applications and information technologies include Wikis, Mashups, Tagging, Blogs and blogging abilities, Podcasting and video uploading, etc (R. Kelly Rainer & Turban,  2009). A few disadvantages of Web 2.0 is the fact that communication and sharing of information has now become unrestricted. This means that copyrighted material caqn now be infringed upon and even altered. Web 2.0 has made it to where users are more dependent on its technologies for research and information, socializing, etc. There are also a lot of unsecure websites that use Web 2.0 technologies and that poses a lot of threats as well, including accounts being hacked, spam,......

Words: 411 - Pages: 2

xparticles 4 | Advances in Sustainable and Competitive Manufacturing Systems | Collection de jeux XBOX 360 JTAG/RGH (+265Go) Part 2