About CGI And Java Scripts

CGI and Java Scripts are both functional with both Netscape and Internet Explorer browsers. But there is an essential difference between the two. Java functions as a code executed and downloaded in the clients’ side while CGI operates with the server. Before probing deeper into the difference of the two, let us first try to understand these two often-used scripts.

JavaScript requires no special plug-ins, and it works transparently within an HTML page. It animates web page graphics, allows users to change page elements (background color, display preferences), and allows site navigation. Usually, Java Scripts are made up of two parts: the JavaScript functions (the instructions for what the JavaScript does on the page) and elements that cause the JavaScript functions to execute. These two go in different ways. The JavaScript functions are placed between special JavaScript tags within the head tags in the HTML source. Java Scripts follow specific punctuation conventions. Usually, JavaScript functions are the last element within the head tag. The elements that cause the JavaScript to execute are placed within the body tags of the HTML source, depending on where the web page designer wants the JavaScript to run. Because JavaScript is included in the other HTML tags in the page source, a web page with JavaScript elements will be saved in exactly the same format as a web page: the file type should be an ASCII text, and the file name should have the suffix .html appended to the end of it. The script’s difference from CGI will not be clear unless we discuss both CGI and Java Scripts.

CGI is the short version of Common Gateway Interface. It is commonly used in web pages because it allows interactivity by letting the web server respond to user input through a web page with CGI elements. A common example of CGI function is a web guest book. A web designer usually includes a web guest book in the web page so users and visitors can put in their suggestions. These suggestions are collected by the CGI and e-mailed to the designer. CGI and Java Scripts also have a similarity. Like in a JavaScript, files used in CGI must be ASCII text with the suffix .html appended to the end of it. However, if a CGI script will be stored in the CGI bin, it is most likely that the file must be saved as a Perl document. Unlike JavaScript, where the functions must reside within the head tags, form elements can be placed wherever the web page designer wants to put them. The only consideration is that to call the CGI script, HTML tags should come before the form elements of the page.

Though both scripts have different functions, both CGI and Java Scripts have undoubtedly improve the way the internet works. They have also infiltrated the world of movies and televisions with digital films and fantastic characters. Who knows, maybe more uses of both scripts will be identified in the future.

Want to find out about hypoallergenic dog treats and hypoallergenic earrings? Get tips from the Hypoallergenic Diet website.


Article from articlesbase.com

长阳土家族自治县崇阳县成安县磁县长治县长子县朝阳县昌图县长岭县长白朝鲜族自治县沧县昌市长泰县filmbay 长汀县崇义县崇仁县昌江. Cinema al cinema és una forma d’entreteniment que posa en escena un conte de so i una seqüència d’imatges que donen la il.lusió de moviment continu. T’estimo. Ella és romàntica. Que té un germà i una germana. Vostè necessita ajuda. Som rics. El món és divertit. acadêmico aquisição Agir acção ativismo ator atriz admissão avançados vantagem aventura estético agência companhias aéreas alerta ocupado chamada Câmara Diretor vela cartão.
Video Rating: 0 / 5

Incoming search terms:

  • java cgi tutorial
  • about cgi
  • javascript exec shellscipt
  • differentiated between the Java script and CGI
  • cgi tutorial
  • cgi in java tutorial
  • calendar tutorial in java
  • about cgi scripts
  • about CGI scripting
  • javascript to call shellscript cgi

Related posts:

  1. Common Gateway Interface – Cgi Scripts
  2. ScriptsDesk ? Free Software Scripts| Free Web Scripts Download | Collection of scripts
  3. Cgi Web Hosting – 3 Vital Scripts for One?s Business
  4. The Security of CGI Scripts
  5. Q&A: Restrict CGI scripts (“open base dir”)?