Landing : Athabascau University

Group members: this is the place for your learning diary. Use this to post your zipped-up site at least once each unit, and your reflections as often as you wish (at least once per unit). Please write your reflections directly in the post, not as attached files. Where you do need to attach documents, such as for unit 1 designs, use PDF, PNG or JPG formats. You can attach files using the 'Embed content' link in the editor.

QUICK COURSE LINKS:  Add blog post - Read latest group postsFAQs: Course process : Site design : HTML : CSS : JavaScript : JQuery : AJAX : MiscPodcasts for each unit

Updated resource pages:  Unit 1 - Unit 2  - Unit 3Units 4 & 5 - Unit 6 - Unit 7

mportant notice: the student web server is unavailable. Until this is fixed, we do not require you to upload your site to the student server. See Running a web server on your local machine for details of how to meet the requirements for the final unit

Unit 5 - 3 ideas about JS

  • Public
By CHENXIN ZHANG in the group COMP 266 May 16, 2022 - 1:50pm

1. True form validation :
In my previous code: The form validation Javascript is only capable of checking weather the user put
something in the input section or not. By modifying the JS code. The program can check more stuff:
-The phone number has to be number only.
-Name can not have special characters like: @$%( probably no body name them self like that)
- Abusive language checker(for the sake of back-end staff on this website)
2. A shopping cart :
If the user want some sessions: a shopping cart will be great. Some user can add things desired as
they browse the web
3. Investment simulator :
I will have two variables one is the user’s money the other is a number representing a stock or the
market's price. Once the user click buy the money will follow the other variable’s value and once the
user click exit it(user’s money) no longer follow the other variable's value. Thus a simulation is
established. And that will tell the user the risks about buying stocks