?
Solved

quick & easy question about web scrpting

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

762 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