Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain


CA216      CA249      CA318

CA400      CA651      CA668

Client v. Server - Putting a program online

Your server has some code that needs to run.
Where should the code be run: Client-side or Server-side?
We have various choices, which we illustrate with the same program:

Chaos theory program - CGI version (server-side)

Chaos theory program - Javascript Ajax version (server-side)

Chaos theory program - Javascript version (client-side)

Comparison of different ways of putting a program online

Method CPU load Can access server files Programming language User can see source code User input security issues Submit opens new page Can link to program with arguments
CGI or other server-side
(e.g. PHP with args)
Server-side Yes Any No Yes Yes Yes. Easy.
Javascript Ajax Server-side Yes Any No Yes No Possible but complicated
Javascript Client-side No Javascript only Yes No No Possible but complicated

Feeds      w2mind.org      ancientbrain.com

On the Internet since 1987.