100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Otro

ICT1512 Assignment 11 Hands-On Project 9-1

Puntuación
-
Vendido
1
Páginas
9
Subido en
05-08-2023
Escrito en
2023/2024

ICT1512 Assignment 11 Hands-On Project 9-1 solutions In this project you will work on a web page in which customers attach greeting messages to gifts purchased for friends and family. The contents of the greeting message will be entered on one web page form and then displayed as part of a shopping cart on a separate page. Data will be transferred from one page to the next by appending data to a query string. A preview of the shopping cart page with a sample gift card message is shown in Figure 9-22. Do the following: 1. Use your code editor to open the project09-01a_, project09-01b_, and project09-01b_ files from the js09 c project01 folder. Enter your name and the date in the comment section of each file and save them as project09- , , and , respectively. 2. Go to the file in your code editor. Edit the form element so that submitting the form opens the file using the get method. Close the file, saving your changes. 3. Go to the file in your code editor and add a script element linked to the file. Defer the loading of the script until the page finishes loading. Take some time to study the contents of the HTML file and then close the file, saving your changes. 4. Go to the file in your code editor. Apply the slice() method to the h object, storing the text after the first character in the query variable. 5. Use the replace() method to replace very occurrence of the + character in the query variable with a blank space. Apply the decodeURIComponent() method to replace every URI-encoded character in query with the matching character. 6. Appy the split() method to the query string to split the text at every occurrence of the & character, placing each name=value pair as a separate item in the cardFields array. 7. Create a for of loop that loops through every item in the cardFields array. At each iteration of the loop do the following: a. Split each item at the location of the = character, store the substrings in the nameValue array variable. b. Store the first item in the nameValue array in the name variable. Store the second item in the nameValue array in the value variable. c. Store the value of the value variable as the text content of the document element with an id equal to the name variable. 8. Save your changes to the file and then load in your web browser. Enter sample greeting text in the field of the web form and then click the Submit button. Verify that the browser opens the file with the text of the greeting message displayed in the page.

Mostrar más Leer menos
Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
5 de agosto de 2023
Número de páginas
9
Escrito en
2023/2024
Tipo
Otro
Personaje
Desconocido

Temas

Vista previa del contenido

ICT1512 2023 ASSIGNMENT 11
Hands-on Project 9-1
(with all the source code you need)
***There is a link to the PROJECT zipped folder at the end of this file***


Crystal Indigo!
Crystal Indigo!
Providing all solutions you need anytime
+27 76 626 8187




***copy the code to your editor, run or open with a browser***
Note: do not submit as pdf , CHANGE name and date

, <!-- project09-01a.html -->
<!DOCTYPE html>
<html>
<head>
<!--
JavaScript 7th Edition
Chapter 9
Hands-on Project 9-1

Author: Crystal Indigo
Date: 05/08/2023

Filename: project09-01a.html
-->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Hands-on Project 9-1</title>
<link rel="stylesheet" href="styles.css" />
</head>

<body>
<header>
<h1>
Hands-on Project 9-1
</h1>
</header>

<section>
<h1>Personal Greeting</h1>
<form method="get" action="project09-01b.html">
<fieldset>
<legend>Enter your personal greeting</legend>
<label for="to">To:</label>
<input name="to" id="to" type="text" />
<label for="from">From:</label>
<input name="from" id="from" type="text" />
<label for="msg">Message:</label>
<textarea name="msg" id="msg"></textarea>
</fieldset>
<input id="subButton" type="submit" value="SUBMIT" />
</form>
</section>
</body>
</html>
$7.08
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
CrystalIndigo University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
486
Miembro desde
5 año
Número de seguidores
226
Documentos
73
Última venta
3 meses hace
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

51 reseñas

5
27
4
13
3
6
2
1
1
4

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes