Free Essay

Web Technology

In:

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

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 compatible...

Words: 2028 - Pages: 9

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

The Origins of Web Technology

...network) in 1965. Even though they themselves admitted 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...

Words: 484 - Pages: 2

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) was...

Words: 1764 - Pages: 8

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

Free Essay

Web Technologies Usability and Standards Compliance

...(picture) image information to specify an “ALT” attribute tag, which I described as “picture of people running”. ALT tags are intended to be provided, to assist users who may be sight challenged - or using older browsers to obtain an explanation of the image(s) are representative of. I amended the code by adding an opening bracket to the HTML comment about the comments not being rendered by the webpage. This stopped this comment from appearing on the webpage and thus confusing the user. I deleted the 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...

Words: 876 - Pages: 4

Premium Essay

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

...(Ebrahimi, 2005) A good manager can be in situations where they are not the expert; thus, they rely on experts who know much more (Berkun, 2010). It is important for a manager to understand the context of the problem or situation in order to help make a good decision. In this day and 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...

Words: 490 - Pages: 2

Free Essay

(1) Your Educational or Career Goals and How Mastery of Information Technology Has Already Enabled You to Reach Those Goals, and (2) How the Rapid Changes in Technology, in Particular Web 2.0, Have Affected or Will Affect These Goals in the Future.

...of familiar with a word processor. I became a little familiar with the Apple computer because of a work study program that I was involved in. Based on the information I had at that time, I thought a computer was something that you stored information solely for an individual’s use. While I was familiar with using my computer at work to interface with other departments within the organization, I had no idea that the electronic information system would one day be an absolute necessity in my everyday life, both at work and in my personal life. I didn’t know that I would rely so heavily upon information technology to further my education or to continue stocking of my professional tool bag. I felt very lucky that I was introduced to information technology at a young age. Because of that introduction, I was able to test some of the new technologies after they developed. This worked to my advantage, because I soon learned that the...

Words: 791 - Pages: 4

Premium Essay

Media

...For example, lack of education because of poverty, problems related to drugs, alcohols, teen pregnancy, overuse of modern technology for instance cell phone, computer, internet and social media, and overspending money by taking personal loans, overuse of credit card and overdraft in bank account. Major issue facing adolescence is related to overspending and iGeneration. iGeneration refer to anyone born after 1990s. `ì` represent technology used by children and adolescents like iPhone, iPad, iTunes and iPod. Technology is very important for iGeneration. Young people in the 1960s had fewer option regarding education, career opportunities and entertainment compare to young people today. There are so many negative impact of technology and government overspending of money on children. First of all, Technology cause many health related problems in teenagers such as weak eyesight, obesity due to less physical activity, decreased memory power by using digital technology and back pain(. Technological device influence social relationship because children addicted to gadgets and social media like Facebook, Twitter and Instagram. They don’t have time to sit with their parents and relatives. Technology have negative effect on education. Children waste their precious time on social media without worry about their studies. Technology effect writing skill of youngsters because children avoid hand writing and most of the time they use text messing. While...

Words: 587 - Pages: 3

Free Essay

Loves

...Dino Chavez, 1501114 M. McKenzie English 1302, Period 4 21 May 2011 Human versus Machine In today’s world full of exponential technological growth, it is only a matter of time until the world irreversibly changed to conform to this technological growth. The present growth and apparent future growth due in part to the rise in popularity of biomedical engineering. But what exactly is biomedical engineering and how is it causing our world to show substantial growth in technology? Biomedical engineering is the application of engineering principles and design concepts to medicine and biology. Because it is a highly interdisciplinary field, as one (inner) field of biology, medicine, or engineering expands, so does biomedical engineering. All of this technological growth does, however, pose a question: Will the vast technological growth cause a change in mankind? The rise in popularity of biomedical engineering will lead to machine taking over mankind or human immortality and dissolution of human identity. With the rise of biomedical engineering present, machines are making their presence. Lev Grossman states: “So if computers are getting so much faster, so incredibly fast, there might conceivably come a moment when they are capable of something comparable to human intelligence.” With the incredible power that is continually contributed to computers and other machines, is there a limit to how powerful machines will become? Without a limit to the amount of memory and...

Words: 1293 - Pages: 6

Premium Essay

Technology in Education

...Technology in Education In recent years educational institutions have implemented excessive uses of technology in the classroom. As a nation we are always striving to improve our systems and the way we do things; however, too much of something isn’t always a good thing. While technology can improve the way subjects are taught in the areas of convenience and quickness, it can also harm education in the facets of quality. At the rate that technology is spreading, teachers and professors will soon be replaced with computers and online learning tools. While there may be advantages to such an approach, the disadvantages far outweigh them. I am going to discuss the potential negatives of implementing such large amounts of technology in the educational classrooms of today. An obvious place to start would be on technology itself. Has technology actually positively affected people today, or has the overwhelming amount of information available at a fingertip caused us to rely on it so heavily that we have lost our desire to learn? One problem with technology is that intrigues our minds so well that we don’t want to do anything else. For instance, if a child is playing the newest video game and his mother asks him to stop for a second and take the trash out, he will instantly become furious (Martin). It is not reasonable that such an easy and simple task would create such a feeling of exasperation, so we can only point a finger at the new factor, which is technology. Patience seems to...

Words: 1177 - Pages: 5

Free Essay

Dependent Generation

...are dependent on technology, of course, but also dependent on parents. My generation is addicted to technology. The multitude of devices now readily available explains the origin of our dependence. Even teachers now use technology as part of their curriculum. Considering this fact, an argument stating that students do not actually need their many devices is proven invalid. Students indeed require their phones to be successful in school. For example, in physics, my classmates and I used our phones to videotape an oscillating spring to gather data for a lab. Therefore, the vital incorporation of technology into education forces students to own phones and partially justifies the use of technology, but it does not rationalize the obsessive use of technology. Inside and outside of school, all that matters is Facebook, Google, and Snapchat. Technology consumes three hours and sixteen minutes of our lives every day. (Woollaston) People today believe that they cannot live without our IPhones and Macs. Interestingly enough, many of these people have actually experienced a technology-free world, and therefore, know that it is possible to live without checking Facebook every two seconds. There is, though, a major difference between the older generations and our dependent generation. Our parents and grandparents learned the vital skills of life like cooking and cleaning, in school and at home. Thus, these generations cannot be considered completely dependent on technology. Our era is revolutionary...

Words: 603 - Pages: 3

Free Essay

The Issue with Technology

...The Issue With Technology This course has affected me to think differently about technology. It has showed me that many times, we rely on technology too much. Dependence on technology erodes community. Online and offline, when it comes to computers, phones and other such devices, you have created the potential for major distraction and danger. Distraction in the sense that one can spend too much time or too much energy trying to better yourself (often against others) through the technology you have. If you are focusing on how to help others, not on how many more gigabytes you can download with a certain machine, you can be a society that prides practical support for each, over personal security in any virtual world. Danger in the sense that not everything you can encounter through technology is going to be of use to your well-being and/or, by extension, others. Take any of the pornography, alcohol or drug industries. Previously these had a much more limited influence. Now you can access them simply through a click. Community requires effort, and if you want your society to improve itself, it should have to put in an effort to help one another. Using these tools together, and not letting yourselves get sidetracked by their other purposes help you to be independent. You also want to stop society abusing itself because it can. Technological devices can be useful, but from a spiritual perspective, one has to take care of how they are used for everyone to benefit. We are getting...

Words: 1585 - Pages: 7

Premium Essay

Role of Technology in College and Careers

...Today, we live in a world where technology is forever increasing and impacts our everyday lives. IPads, IPods, laptops, computers, YouTube, Facebook, are all things we all are familiar with and probably use every day. Not one day goes by without me surfing the internet. People exercise the use of our technology to make their lives easier. Technology can be defined as the branch of knowledge that deals with the creation and use of technical means and their interrelation with life, society, and the environment, drawing upon such subjects as industrial arts, engineering, applied science, and pure science (Dictionary.com). The computer, for example, is a common resource I use every day, even for the simplest tasks. Research, navigation, weather, sports, whatever it may be, have never been so easy. I find out now that I am in college, just how essential technology is. I believe the role of technology in college and careers is to create higher education, help make things more accessible, thus making our jobs or learning experiences easier and enjoyable for people but, just as technology may be beneficial to people, there can also be some hindrances. Technology is beneficial to me in college in so many ways. To begin with, technology helps me learn and get my school work done efficiently. By using laptops, smartphones, IPods, and things such as those, I believe my learning is better because I am more of a visual learner and growing up in this day and age, it is something that I am...

Words: 1401 - Pages: 6

Premium Essay

Trends Assement Hcl Technologies

...Purpose HCL Technologies provide a range of outsourcing services, business process outsourcing, and infrastructure services. The purpose of this paper is analyze trends and economic forces that impact changes in the global marketplace, analyze the impact of market trends in driving innovations in organizational, structure, culture, and process, and also to analyze leadership in relation to the effectiveness of general management planning and decision making. Majority of my information will come from HCL Technologies case study with Nayar’s insights about the subject. Analyze trends and economic forces that impact changes in the global marketplace. The product that HCL Technologies sells is a service that customers use to make their business better. Staying with the latest trends is very critical in a service based business like HCL Technologies. The first trend I would like to talk about is Technology trends. Technology trends can drive innovation and influence decision making in the IT service industry. According to Hickman (2010)" Developments in technology lead to new products and services and improve how they are produced and delivered to the end user. Innovations can create entirely new industries and alter the boundaries of existing industries." A future trend that will spread rapidly in the IT industry will be Cloud Computing. There will soon be away a business can obtain and maintain software, hardware, and computing capacity. According to the Nayar Case study...

Words: 1539 - Pages: 7