The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
need help fixing my html page and javascript and also css page i will upload what i have also the url for the assignments as well please help i only have 22 dollars. ashley had recommended you to me.
link 1:Â https://youtu.be/tjcvtFz25m0Â
link 2 :Â https://youtu.be/JdeoX_sGEGI
Â
Â
ITEC 3280– Web Programming
Assignment 3
______________________________________________________________________________
Arrays and Objects Part I:
Create a web page (login.html) that contains a form to collect the following data.
User Name (text type)
Password (password type)
Login (button)
The page should also contain a blank division <div> to serve as an output area.
Be sure to add an external CSS file to both login.html and product_order.html (if you didn’t do so yet) to
apply proper styling. Part II:
Revise your product_order.js file so that it includes a new function – login(). When the function is called,
two corresponding arrays are created. The first array contains four (4) user names and the second array
contains four (4) passwords. It is often necessary to use a pair of arrays, called corresponding arrays to
perform "table look-up" functions.
For example, one array may contain company names and the second array would contain the
corresponding stock symbols. These are corresponding arrays in that the values in the first array
correspond with values in the second array at the same positional element:
var companies = new Array("Apple", "Google", "Microsoft");
var symbols = new Array("AAPL", "GOOGL", "MSFT");
Use a for loop to iterate the length of the array. As you loop, use an if statement to determine if the user
name and password input by the user matches any of the corresponding values stored in the arrays.
If matching username and password are found, use the location property of the Browser Object Model
window object to redirect the user to product_order.html page and exit the loop using the JavaScript
break command:
window.location="product_order.html";
break; If the loop ends without redirecting the user (meaning no matching user name/password are found),
display an error message in the output division.
You will also need to modify your init() function to include a second listener for your Login button.
Finally, revise your init() function so that it assigns the current date to the Date text box added to
product_order.html. The date should display in the format: 2/5/2015 or 02/05/2015. Use the JavaScript
Date() function.