1. IS4 030 - Website Design for e-Commerce By SMIEEE, SMACM, MACS E-mail: [email_address] Room: P7919 Consultation Hours: 3:30 - 5:30pm Monday Lecture Six –JavaScript I
2.
3.
4.
5.
Editor's Notes
In general, you cannot use JavaScript alone to check a registered user for an eCommerce site. Reasons: User data is usually kept in a database which is installed on the Web server side rather than on the client side. So, you need to use server side programs such as ASP .Net, JSP, Servlets, Perl, PhP, CGI etc. to develop the validation codes.
JavaScript is better because JavaScript can be executed by any Web browser programs; JavaScript is better because it is executed on the client side to save the turnaround time and share the workload of the Web server. VBScript: codes can only be executed by Windows operating system; ASP .Net (Visual Basic): codes are executed by the IIS Web server; Java Server Page: codes are executed by the Tomcat Web server;
Script language (e.g., JavaScript) usually is simpler than full functional computer programming language (e.g., Java). Easier for you to learn! Script language requires an interpreter program to execute the codes and the execution speed is slower; Full computer programming language like C++ can be directly executed by the Operating System, and it is executer much faster;