Serverside Vs Clientside - What's best for you?

free web hosting
Free Web Hosting > Computers & Tech > How-To's and Tutorials > Websites and Web Designing

Serverside Vs Clientside - What's best for you?

Habble
Just thought I'd post about the differences between a serverside language, and a clientside language. Alot of people get them confused easily mellow.gif

Clientside:
Scripts are placed inside a <script> tag in the page. Visitors are able to see the scripts in the source code of the page. The scripts are run on your computer.

Advantages:
  • Can do more, e.g. make items move.
  • Can perform actions without having to reload the page first.
  • Can be used with HTML tags. (e.g. onLoad, OnMouseOver)
  • Are used to make rollover buttons, which are an important part of many websites.

Disadvantages:
  • Scripts are interpreted at the visitors browser, if their browser is out-of-date the website will not display properly
  • Not secure, anyone can look at the code in the page source
  • Can slow down old computers
  • Some browsers disable active content, such as clientside scripts and tell the user they may be harmful

Some common uses:
  • Button rollover effects
  • Cursor trails
  • Form verification
  • Creating cookies

Serverside:
Scripts are placed inside a <? tag in the page. Visitors are not able to see the scripts. The scripts are run at the server, then the result is sent to your computer.

Advantages:
  • More secure, visitors aren't able to view scripts
  • All scripts are performed at the server, it will work with any browser
  • You are able to include external files, to save coding
  • You can combine it with programs such as MySQL

Disadvantages:
  • Scripts can only be performed when the page loads/reloads
  • When moving sites, some code may have to be modified, depending on the configuration and version of PHP
  • In most languages, variables must be preceeded with a $ sign
  • All lines must end in a semicolon (wink.gif

Some common uses:
  • User management
  • File includes
  • Database communication
  • Finding $_GET variables (e.g. index.php?variable=value)

I hope that helped you decide which is the best for you! So you're less blink.gif and more cool.gif !

 

 

 


Reply

Feussy
Another disadvantage to server side scripting: an out of control script (aka infinite loop) will take down your server. If a client side script loses control, the most that can go wrong is a crashed browser, and your server won't get hurt.

Reply

ryanlund2323
server side every day. client side bores the hell out of me

Reply

knight17
As I like to use content management systems, I am always using server side technologies like php.

Reply

HellFire121
Nice guide.

I'm all for server side too, especially now with ajax you can make very advanced sites that don't even need to reload if it's setup properly - you then also have the advantage of the server doing all the processing so the client just gets the direct html code

-HellFire

Reply

Habble
Yeah, the main reason why I use Serverside codes, is because if you had something in JavaScript, it might do one thing in Safari, another in Firefox, and nothing in IE, which is what usually happens... But with serverside it doesn't matter what browser the user has, its what server you have.

Reply

Sten
I think serverside is better.

it can do more i think.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. serverside language vs. clientside language - 46.45 hr back. (1)
  2. game programming clientside serverside - 159.34 hr back. (1)
Similar Topics

Keywords : serverside, clientside, whats,

  1. Php Random Selector
    whats the code (2)
  2. What's Wrong?
    help me (3)
    I'm trying to enable the remote desktop remotely, but something is wrong. But what? I get this
    tutorial: QUOTE Enable Remote Desktop Connections remotely #2 I've received a few comments
    on my earlier post - one of them is that you can just wait a minute or 2 after changing the registry
    key instead of rebooting (Patience is a virtue ;-) another one is that the "authorized" way to do
    this is through WMI - wmic /node:"Computer Name (FQDN)" /USER:"username" RDTOGGLE WHERE
    ServerName="Computer Name" CALL SetAllowTSConnections 1 This by the way only works from ....
  3. Whats Wrong In Altec Lansing Sound System ?
    Problem in Altec Lansing 5.1 (5)
    Guyz I need your Help. I bought Altec Lansing 5.1 with Creative sound blaster 5.1 sound card. it has
    two playing systems in it one is stereo system and the other is suuround system.In Stereo system
    only the front right and front left speaker works with woofer and the other three speaker dont
    produce any sound.When I switch to surround system all the five speaker works but woofer doesn't
    produce any sound means no base. so I not getting the proper sound in anyway, I want all the five
    speakers to work with woofer .... do anybody knows about this issue ???please help m....
  4. Rpg Maker Xp Questions
    what's the difference (1)
    1) Does anybody know what the difference between the different versions of the RPG Maker 2000, XP,
    03, etc.? I've been trying to use some of the scripts available online when I noticed they are
    created for specific versions as well as languages/translations. The version I have says it needs
    1.02 but I have 1.01 in English, but I develop in a translated Japanese version. I usually have to
    guess at what the tutorials say cause the wording is different. 2) Are there other people out there
    with the same problems or receiving error(s)? 3) Are the RTP different for diff....
  5. Whats The Ascii Code Of Your Name?
    write your name in ASCII code (4)
    This is fun write your name in ASCII code in hex; in uppercase C=43 H=48 R=52 I=49 S=53 T=54 I=49
    A=41 N=4E *Whats your ASCII CODE? Please refer to : http://www.asciitable.com/ ....
  6. What's Wrong With My Php Webpage?
    there may be something wrong in my php code. (2)
    This is the first time I use the functions fopen() and preg_replace() . It seems that there's
    somthing wrong. Where did I write by mistake? CODE include('data/workinfo/0.php');
    $viewwork = substr($work ,0,249); /* HERE CAN'T WORK WELL! */ $newthread =
    fopen("http://c8s2007.freetzi.com/bbs/new.php?action=article&digest=0&postdate=0&author=1&fname=0&hi
    ts=0&replies=1&pre=6&num=10&length=35&order=1", "rb"); if(!$newthread){         $newthread =
    "无法调用信息!";     }else{         $ad = "
    ";      ....
  7. Whats Your Favorite Sport
    (10)
    Football Basketball Cricket Baseball American Football And One For The Girls, Shopping Please
    Choose /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
    -Dafty....
  8. Vista And Xp - What's The Difference?!?
    (11)
    I don't know what the difference between Vista and XP is. I just see Vista as a glorified XP.
    Does anyone have any other opinions?....
  9. How Fast Does Your System Boot, And What's Your Os?
    Poll (27)
    I'm curious how fast people's systems start up. As a side effect, I'm stress-testing
    Astahost's polling system. BTW, here's an interesting article called "Making Ubuntu boot in
    19 seconds": http://lightningcrash.blogspot.com/2007/08...19-seconds.html ....
  10. Cruzer Flash Drive (usb)
    What's with the software (13)
    I have a couple of 1G drives by other brands and just picked up a new 2G cruzer by Sandisk. But
    it comes with all this (stupid) software ... a launcher and stuff. I'm used to plugging it in
    and using it. And with the launching software it wants me to WAIT until it launches its own apps.
    What's the advantage? It seems quite redundant to have this extra software running. I deleted
    the files, but they keep coming back. YIKES! How do I get rid of them!? ....
  11. 4 OS On One Computer
    what's the easiest way? (10)
    I'm interested in loading Linux (ubuntu), XP, Vista and Tiger on my computer. I know each of the
    systems work. but how do i install them all so that i can easily choose which OS to boot to when
    starting the computer. I've heard of grub bootloader, but frankly, i find the linux terminal and
    code out of my range. is there also a sequence i should follow for installation order?....
  12. What's The Best CMS
    CMS or not CMS?, that is the question (38)
    read many artical and try many CMS, but still haven't find a best CMS, have you find it?
    phpWebSite Tiki XOOPS TYPO3 FreeWPS XDBCMS Nucleus CMS Mambo....
  13. Besides AVG, What's The Best Free Anti-Virus?
    (16)
    I hate AVG personally, but i havent yet figured out what I want to use for an Anti-virus program. I
    have Anti-vir right now, but I really love to the many different opinions that are given here on
    these forums. I just don't know what would be good. I had Avast for a little bit, it seemed
    pretty good, and I'm not quite sure why I didnt use it again. So what do people think is the
    best free anti-virus (please don't mention AVG)?....
  14. My Review Of Runescape... What's Yours ( Poll ) ?
    My Review (67)
    I like runescape and all but they have terrible graphics , customer support , lag , and moderation.
    I did a little test i said 3 swear words and i was banned. I advertised a scam site for 2 and a half
    hours and did not get banned, bad moderation huh? yes its terrible. Why don't they
    upgrade there server or like make some new worlds i mean like 2000 people in one world is insane
    lower it to 1000 jagex (very lazy). There is so much lag on runescape it is not even funny. I
    don't think runescape is the best game on the net there are hundreds of way better....
  15. Who Is Your Favourite Free Host?
    what's your fav free host? (145)
    Hi! Who is your fav free host?....
  16. Whats A Good Graphics Editor For Solaris 10 ?
    (8)
    I've just download Solaris from Sun Download Center. I also installed it. But I need to do some
    artwork with photoshop. I don't have any graphic edior for this Operating System. I don't
    know what to do next, Does anyone know anyway to run a Win App on Solaris or a good Graphic Editor
    for Solaris?....
  17. What's Life As A Programmer Like In Your Country?
    Programmer is the lowest profession here (26)
    Hi guys. What's life like as a technically competent programmer in your country? Over here,
    programmer is the lowest life form. Everyone despises the programmer, from the sales to the users.
    The consultants are people who normally are poor in actual programming, but good at talking and
    sales, and they rose up to be a consultant. Here, a programmer works from 8:30am to 9pm everyday
    rushing projects. Pay increments are low, and can expected to be laid off by 35 yrs old, once u are
    considered technologically backward. How's life of a programmer in your country? ....
  18. What's Your Profession?
    Let the community see who you are (30)
    I decided to make this topic to let the community get to know each other more. I understand that
    we are not all in the areas of work of Design, Development or Hardware. So, it would be nice to
    share with the community, our walks of life. At the moment, I am at secondary school, close to
    taking my GCSEs. Soon, I will be in College and perhaps later on I may go to University - of which I
    am not sure about. I hopefully want to have a career in Web Design and Development, or set up my
    own multimedia company. So, what are you doing at the moment and what are your ambitio....
  19. Boast Your Computers Specs.
    Feel free to brag (162)
    Just curious, post up the specs of your machine. Intel Pentium 4 2.66GHz (Not overclocked) 1024MB
    Dual-Channel PC-2700 RAM LG L1720P 17" TFT-LCD Monitor ATI Radeon 9600 Pro Maxtor 80GB 7200RPM
    Maxtor 40GB 7200RPM....
  20. Perl Vs Php
    What's in your website?... and why? (14)
    Ok, so I've heard a lot of both languages, I've used php and I was learning Perl a while
    ago... If you had to choose between these 2 languages to develop a website, which one would you use
    and why? I'm attaching a poll in this message please vote....
  21. Hardware Review Online... Whats The Best Site?
    (5)
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> It feels like since...
    well... ever that I read Toms HardWare Guide almost daily... for me this is just the best hardware
    review site today... But as my knowledge goes, there aren't much more sites of this quality
    arround.... Please leave your comments... /blink.gif' border='0' style='vertical-align:middle'
    alt='blink.gif' /> Sk....
  22. Whats A High Quality Gaming PC Specs
    Looking at getting new Gaming PC (18)
    Hey guys new to astahost.com had a break in not too long ago and lloking at getting new pc currently
    running old AMD-K6 350MHZ 128Mg ram lol. previous gaming computer got stolen. Looking at buying a
    new gaming system but not fluent with system specs and hardware items price not an issue as
    insurance is covering can anyone help me out. Sinister Shadow....
  23. Notebook Or Laptop?
    What's the difference, if anything? (17)
    Okay - now that I've started thinking about "laptop" and "notebook," I have a question for
    anyone who might be able to explain. Is there a difference, or is it just a matter of two terms
    describing the same thing? If there's a difference, what is it? Now that I'm wondering
    about it, it's going to bug me for the rest of the day! *grins*....
  24. The Best Metroid Game
    what's your favorite? (10)
    My favorite's gotta be the first Metroid EVER. It's classic and SO much fun.. although, the
    metroid primes are great, too....
  25. Server Os
    What's the best? (16)
    Hello! I got a server down here, but i don't have an operating system, do any of you know a GOOD
    server os? I should run web, IRC and mysql server on it /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> Please answer me, cause i need help. -flippys....
  26. Cinema 4d Or 3d Studio Max
    Whats better??? (10)
    Hey i was just wondering which one is better for my needs. I'm mainly looking for a program to
    create 3d renders to use in my graphics. Is there much of a difference in the two. Becuase i've
    asked people and they've just said choose the one you like best, but i wanna really know if
    there is one that really stands out from the other thanks in advance.....
  27. What's The Best 3d Animation Software?
    Maya 6, Pixar, 3D Studio Max, (15)
    I want know want animators prefer using in 3D Animation.....
  28. What's The Difference Between Linux And Unix?!?
    (17)
    are they even made by the same people...?....
  29. Whats The Last Dvd You Watch And Rate It Out Of 10
    (17)
    whats the last DVD you watch? rate it last DVD I seen is alien, 9/10 a classic. old but still the
    best ever sci-fi horrors ever made. ....
  30. Favourite Bands
    What's yours. (64)
    What are your favourite bands? I like Good Charlotte, Linkin Park, ACDC, Sum 41, Simple Plan.. All
    that stuff....

    1. Looking for serverside, clientside, whats,






*SIMILAR VIDEOS*
Searching Video's for serverside, clientside, whats,
Similar
Php Random Selector - whats the code
What's Wrong? - help me
Whats Wrong In Altec Lansing Sound System ? - Problem in Altec Lansing 5.1
Rpg Maker Xp Questions - what's the difference
Whats The Ascii Code Of Your Name? - write your name in ASCII code
What's Wrong With My Php Webpage? - there may be something wrong in my php code.
Whats Your Favorite Sport
Vista And Xp - What's The Difference?!?
How Fast Does Your System Boot, And What's Your Os? - Poll
Cruzer Flash Drive (usb) - What's with the software
4 OS On One Computer - what's the easiest way?
What's The Best CMS - CMS or not CMS?, that is the question
Besides AVG, What's The Best Free Anti-Virus?
My Review Of Runescape... What's Yours ( Poll ) ? - My Review
Who Is Your Favourite Free Host? - what's your fav free host?
Whats A Good Graphics Editor For Solaris 10 ?
What's Life As A Programmer Like In Your Country? - Programmer is the lowest profession here
What's Your Profession? - Let the community see who you are
Boast Your Computers Specs. - Feel free to brag
Perl Vs Php - What's in your website?... and why?
Hardware Review Online... Whats The Best Site?
Whats A High Quality Gaming PC Specs - Looking at getting new Gaming PC
Notebook Or Laptop? - What's the difference, if anything?
The Best Metroid Game - what's your favorite?
Server Os - What's the best?
Cinema 4d Or 3d Studio Max - Whats better???
What's The Best 3d Animation Software? - Maya 6, Pixar, 3D Studio Max,
What's The Difference Between Linux And Unix?!?
Whats The Last Dvd You Watch And Rate It Out Of 10
Favourite Bands - What's yours.
advertisement




Serverside Vs Clientside - What's best for you?