JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 5th, 1999, 07:32 AM
SoftNet
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Thanks,
Meirav Morse
SoftNet Corp.
SoftNet001@aol.com

Reply With Quote
  #2  
Old May 5th, 1999, 07:51 AM
nico
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #3  
Old May 6th, 1999, 09:29 AM
scollo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
SoftNet,

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:
http://www.wernhart.priv.at/php/

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > JavaScript Vs. CGI Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT