100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Overig

ICT1512 Assignment 11 Hands-On Project 9-1

Beoordeling
-
Verkocht
1
Pagina's
9
Geüpload op
05-08-2023
Geschreven in
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.

Meer zien Lees minder
Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Gekoppeld boek

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
5 augustus 2023
Aantal pagina's
9
Geschreven in
2023/2024
Type
Overig
Persoon
Onbekend

Onderwerpen

Voorbeeld van de inhoud

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>

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
CrystalIndigo University of South Africa (Unisa)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
486
Lid sinds
5 jaar
Aantal volgers
226
Documenten
73
Laatst verkocht
3 maanden geleden
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

51 beoordelingen

5
27
4
13
3
6
2
1
1
4

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen