Solved

quick & easy question about web scrpting

Posted on 2004-09-13
1
162 Views
Last Modified: 2010-04-06
Hi all,
  I learnt a bit of client side scripting(javascript), and then i noticed everybody was moving to server side scripts(php, perl etc). so i figured, why dont I.

I've started learning php(still in the basics) but i have one question that keeps bugging me...

Can Server-Side-scripting complety replace Client side??
Can i use php to do rollover effect... or can i use it to call a function after the page has loaded???

Adecold
0
Comment
Question by:adecold
1 Comment
 
LVL 15

Accepted Solution

by:
VincentPuglia earned 125 total points
ID: 12045192
quick answer: no
serverside scripting occurs on the server, which means the user never sees what goes on until you send it to the client.  And the server never knows what is going on at the client until there is a submission/request from the client.

So, a serverside image rollover would mean that the user would have to mouseover the image, a submission would have to be made, the server would have to rewrite & redisplay the page with the new image -- totally unacceptable in today's world.

serverside scripting is used primarily for database storage and security.

you can, however, use both php & javascript on your page -- javascript for image rollovers, non-critical code, etc.  and php for whatever else

Vinny
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is the normal amount of queries 5 80
CSS (line height?) issue 2 68
two submit buttons one form 15 97
AngularJS directive issue 6 72
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question