Solved

quick & easy question about web scrpting

Posted on 2004-09-13
1
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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
Best way to find duplicate message in database 7 38
Visitor to Web site (Log showing Strange IP Address) 9 124
Using YubiKey with REST API application 2 136
Problem to echo 6 115
When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

726 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