Archive for November, 2009

About CGI And Java Scripts

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.

How to Make Java Script Search Engine Friendly

How to Make Java Script Search Engine Friendly

Think of the search engines like a child with a short attention span. If they have to crawl through tons of messy code before they get to the body content on your page, there is a chance they will “lose interest” and not continue spidering the page.

Since you want the engines to be able to spider all of your content pages, you should minimize the amount of extraneous code that is on your page. You worked hard to create your content and get your site optimized, so the last thing you want to do is take a chance that the engines won’t want to spider your pages.

One way to clean up the code is to take java script that is on-page and put it in an external .js file.

Java script on your page usually takes up anywhere from 3 – 8+ lines of code. That is all just creates extra code that the spiders have to crawl through before they get to your body text. You are better off calling your java script in from a .js file. This takes what used to be many lines of code on your page and reduces it to one line where you just call the script in.

To create an External JavaScript file:

Copy your script and paste it into Notepad.

Remove the beginning and end script commands. They are:

and

Next, do a SAVE AS command and save the file as “text only” with an extension of .js

Example: java.js

Upload the file to a folder on your server that you name Java. (Or whatever name you wish.)

To call your Java file into your web page, enter into the same place where the script originally was:

Lastly, if you wish to hide the text from JavaScript impaired browsers to avoid error codes, surround the JavaScript with in your java.js file.

This will make for cleaner code, and the functionality will still be the same.

You could also move your script to the bottom of the page – but remember if the page doesn’t fully load then your script may not load, so it could impact the functionality of your page.

Whatever solution you choose to implement – make sure you test it to ensure it works. Once the engines pick up your pages and the traffic to your site increases, you want to be sure the site is fully functional and in tip top shape.

Free scripts for computer programmers and developers!

Free scripts for computer programmers and developers!

Scripting languages have definitely become increasingly popular and every day, more and more people show an interest in what they can do. Some of these are more advanced than others, such as Perl or Ajax.

What is the best place to find some free scripts if not the Internet? It is guaranteed that a simple search on the Internet will reveal some of the most interesting web scripts you have ever seen. Whether you are searching for a PHP script, ASP script or Perl script, you will surely find what you were looking for. At the same time, you have the opportunity to find out that programming languages (web scripts) are generally used to improve existent websites, enhancing certain features. The interesting thing is that while the features are server-processed, the web scripts will function on the browser of the user.

There are many reasons why you could be interested in using scripting languages and free web scripts. You can appeal to a PHP script in order to make different interfaces, to any other type of script to improve the functionality of a search engine and in general, to web scripts to make web-based emails easier to use.

Programming languages have become popular all over the web, being enclosed within HTML and actually contributing to the functionality of the World Wide Web. Today, there are a lot of people searching for web scripts, hoping they will contribute to the development of the Internet through the use of scripting languages. You should know that the free scripts can be used to create a wide range of menus, to add graphic displays to a web page or even for the making of dynamic ads (this is the reason why they are also known as dynamic languages).

The development of the Internet and the abundance of information have contributed directly to the popularization of scripting languages. Specialized resources dedicate themselves to this subject entirely, offering free scripts (ASP, Ajax, PHP, GCI, Perl) to all those that are interested. Many more examples of scripting languages could be given but you will certainly discover them on your own. There are DHTML tutorials in case you want to gain even more knowledge, plus an impressive number of tutorials dedicated to the most popular programming languages – ASP tutorial, PHP tutorial or Perl tutorial.

Find a professional web scripts directory and pick out what you like from there. You can also submit your own free scripts, that is if you have something to offer. Enjoy the resources listed and don’t forget to check in from time to time to see the newest additions present on the website. Keep in mind that getting quality software for the web is the most important thing!


Insurance | CNA Training| Government Grants