Download Scripts - People Search

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Things you can do with SCRIPTS
and Applets






Add a search feature
Provide password protection
Add message boards and chat rooms
Add timekeeping tools such as clocks and
calendars
Ease site exploration by providing visitors
with graphical or hierarchical navigation tools
Link to live information such as news feeds.
Scripts and Applets

Scripts and applets are programs. Some
programs are hooked up to your Web pages by
using the Common Gateway Interface (CGI).

Java applets are tiny application written in the
Java programming language.

Scripts are short programs written in the
JavaScript programming language. JavaScript
was designed solely for writing programs for the
Web.
CGI Access
CGI access means that you can run programs on your
Web server that use the CGI. These programs are
usually kept in a subfolder called cgi-bin.
•
Finding a CGI provider
Go to www.freewebspace.net and click Advanced
Free Hosting Search link. In the search form, click
the CGI check box under Features and click the
Search button.
•
Using remotely hosted CGI scripts
www.fido7.com/free-cgi/
Adding CGI Scripts




Read the instructions for the script
• The instructions are in readme.txt file or
embedded in the text of the script in the form of
comments
Open the script file in a text editor and make any
necessary changes
Add the HTML code that the script’s instructions
say to add to your Web page
Upload the script and the modified HTML file to
your Web server
JavaScripts
The script has to go in the head element of
your Web page. An example of whatever script:
<head>
<script language = “JavaScript”>
function whatever ()
{
actual code is found here
}
</head>
JavaScript – The Trigger



Add to your Web page something to trigger the
script, which causes it to run.
For a script that executes as soon as the Web page
loads into the browser, use the onload attribute of
the body element:
<body onload = “whatever()”>
For a script where you want the visitor to click an
element, use the onclick attribute
<a onclick = “whatever()”>Click here for
whatever</a>
Online Sources for Scripts

www.cgi-resources.com

An intro to CGI
•

www.mattkruse.com/info/cgi/
JavaScript Kit
•
www.javascriptkit.com