[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

quick & easy question about web scrpting

Posted on 2004-09-13
1
Medium Priority
?
168 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 500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

872 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