• No se han encontrado resultados

CUENTA DE PÉRDIDAS Y GANANCIAS Margen de intereses

Correct answer(s):

1. It is browser dependent 3. It can't access databases 4. It increases HTML page size

2. Scripting and programming languages

JavaScript is one of the most popular client-side scripting languages. It was designed to add interactivity to HTML pages.

There are several versions of JavaScript and the various browsers support these differently. To get around this issue, you can add version-specific sections of the code, which will only be executed by browsers that support each version.

JavaScript can exist on its own in .js text files or it can be incorporated directly into HTML pages with these tags.

Graphic

The tags are

<script language="JavaScript">

and

</script>

Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Displaying the date using Javascript</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

77

</head>

<body>

<script language="JavaScript">

var today = new Date();

document.write(today);

</script>

</body>

</html>

VBScript, or the Microsoft Visual Basic Scripting Edition language, is an offshoot from the Visual Basic programming language. It was developed by Microsoft and it's used to develop client-side and server-side scripts.

VBScript provides an easy-to-use web development language for developers who know Visual Basic. It is incorporated into HTML documents to make them more dynamic.

Code

<html>

<head>

<title></title>

</head>

<body>

<script type="text/vbscript">

document.write("Hello World")

</script>

</body>

</html>

ASP.NET is a web application framework that has been developed by Microsoft so that programmers are able to create dynamic web sites, web applications, and web services.

ASP.NET was created along with the .NET framework, and is the successor to ASP. It uses the CLR so that programmers can use any supported code for writing code.

Code

78

<html>

<head>

<title></title>

</head>

<body>

<%

response.write("Hello World")

%>

</body>

</html>

ASP.NET is browser independent, which means that all code is processed on the server and then sent back to the browser as HTML. Using ASP.NET you can combine many .NET services from different sources.

ASP.NET supports combining many .NET services from different sources, as well as creating reusable components through the creation of user controls. When you use ASP.NET, you can add your own properties, methods, and event handlers, and you can also build custom controls for ASP.NET applications.

Code

<html>

<head>

<title></title>

</head>

<body>

<%

response.write("Hello World")

%>

</body>

</html>

79

Some of the other scripting and programming languages are

the C languages

The C languages include C++ and C#. C++ is a middle-level language that is a statically typed, free-form, multi-paradigm, compiled, and general-purpose.

C# is a strongly typed object-oriented language in the Microsoft .NET Framework designed to give the best combination of simplicity, expressiveness, and performance. It's intended to be a simple, modern, general-purpose, object-oriented programming language.

Visual Basic

Visual Basic is a natural language with a case-insensitive approach that supports optional

parameters. It is part of the .NET Framework. A benefit of Visual Basic is simpler event handling.

Java

Java is a powerful programming language used to build Internet applications. It's designed to be independent of the operating system and the computer on which it runs. It can be used to develop applications and applets.

Applications are standalone programs that can be launched independently of other programs and which have access to the host system. Applets are programs that need an applet viewer or a web browser to run them and they don't have access to the host system.

JSP

JSP stands for JavaServer Pages. It provides a way to dynamically generate web pages and simplifies the process of developing web-based applications.

JSP-enabled pages use a combination of HTML, XML, and short Java scripts that, when compiled, make up servlets. Servlets are small programs which run on servers. JSP-enabled pages are similar in form and function to pages containing PHP or ASP.NET. JSP uses the

<%....%> tags to contain the script in an HTML file.

Perl, and

Perl stands for Practical Extraction and Report Language. It is a programming language that combines syntax from several UNIX utilities and languages.

PHP

Question

Match each scripting language to its description.

Options:

A. JavaScript B. VBScript

80

C. ASP D. Java

Targets:

1. A client-side script with the .js file extension 2. An offshoot of a Microsoft programming language 3. A Microsoft server-side based scripting environment

4. A powerful programming language used to build Internet applications

Answer

JavaScript is one of the most popular client-side scripting languages. JavaScript was designed to add interactivity to HTML pages.

VBScript is a scripting language offshoot from VB, developed by Microsoft, which is used to develop client-side and server-side scripts.

ASP extends standard HTML by adding built-in objects and server-side scripting, and by allowing access to databases and other server-side ActiveX components.

Java is designed to be independent of the operating system and the computer on which it is run.

Java can be used to develop applications and applets.

Correct answer(s):

Target 1 = Option A

Target 2 = Option B

Target 3 = Option C

Target 4 = Option D

Summary

Scripts are used to extend the functionality of applications and to make HTML pages dynamic.

Client-side scripts are run on the client computer and execute after a web page has downloaded to a client computer. Server-side scripts are run on a server when web pages are accessed on the server.

There are many scripting and programming languages used today for web development and for building applications. JavaScript is an example of a client-side scripting language and ASP.NET is a server-side scripting environment. VBScript can be used to write client-side or server-side scripts.

81

Documento similar