1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I am new to the whole Internet development field (have been a programmer for 12 years now though) and I was wondering if someone can tell me the differences (if any) and recommend what to use.

    Can JavaScripts be executed on my pc or do I have to install it on the server? (as I understand it, with CGI/Perl I have to install my script on the server in order for it to work.

    Any help will be welcomed.

    Meirav Morse
    SoftNet Corp.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    javascript is running on the client side (so from the visitor's pc). where cgi-scripts run from the server side. advantage is that you don't need to have cgi-access, or knowledge of "complicated" languages like perl. disadvantage is that it is browser-dependent (where cgi-scripts are not, since they run on the server). older browsers may not support javascript, and in newer browsers you can simply turn off javascript-support.

    what sort of scripts you should use depends on the perpose.. some things simply cannot be done with cgi-scripts, other things cannot be done with javascript.

    for cgi-scripts i'd go for the Perl language, it's a completely idiot language (that was my first impression, i was used to c++ programming) but it's not THAT hard to learn once you get the basics. if you've been coding c/c++ or some familiar language, you won't have much troubles learning javascript, there are tutors available all over the net.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    What type of web server are you using? (Apache, Enterprise Application Server, etc.)

    A simpler and faster alternative to CGI scripting would be PHP ( http://www.php.net )

    PHP can run as a module of Apache. Therefore, it is part of the same process as the http-server; whereas with CGI, it's a bit slower because your Perl scripts run as a separate process. PHP is also easier syntactically.

    If you're using a web server like Netscape's, you can use JavaScript for the server-side scripting as well as the client-side.

    For an example of PHP scripting:

Similar Threads

  1. call up cgi in html with javascript
    By wolsch in forum JavaScript Development
    Replies: 1
    Last Post: February 16th, 2004, 03:45 PM
  2. JavaScript: Forcing a script to load before page is displayed
    By hknight in forum JavaScript Development
    Replies: 4
    Last Post: February 8th, 2004, 01:47 PM
  3. Javascript script not working
    By Debbie-Leigh in forum JavaScript Development
    Replies: 11
    Last Post: December 11th, 2003, 11:40 AM
  4. sending input to a CGI script in another http
    By julielim in forum Perl Programming
    Replies: 1
    Last Post: February 13th, 2003, 03:20 PM
  5. calling another cgi script within a loop
    By mcsimon in forum Perl Programming
    Replies: 1
    Last Post: December 27th, 2001, 11:21 PM

IMN logo majestic logo threadwatch logo seochat tools logo