Java and JavaScript are executed from your local computer. CGI is executed from the server Java Script is basically interpreted on the fly - no compiling. Java Script is typically inside of the HTML file. Java is more powerful - it is compiled and those files (called classes) must be uploaded to your web site to reside with your html files. CGI usually refers to a different programming language (either Perl or C). The languages are extremely powerful and many ISP's do not allow public access to the of cgi-bin type directories.
JavaScript -- you've been here (staring at this page) forJava -- Javascript and Java are executed or ran from your computer. They are not returning any information to the server. The programs are sent to your computer ran there and that is the end of the story. CGI programs gather data from your activity and submit that information to the server for processing. The server takes that information and runs the program. It can then record the results and display information pertaining to the data that you entered or activities on the page. The quizzes that are on this site (Internet Basics 101) are written in Javascript. I do not record the results. I can not tell you what your score was. I can not tell what you missed. If you want to see a quiz that is done with cgi scripts you can look at an excel quiz that I did. This quiz (done in Perl - a CGI programming language) records your name - e-mail - each answer - your overall score.
Question: Is this easy to do?
Question: If I wanted to start - where would you recommend starting?
Question: Can Java or Java Script work with CGI?
309
|