Client&server side scripting

937 views

Published on

Client&server side scripting

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
937
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
41
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Client&server side scripting

  1. 1. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  2. 2. Typing Speed Week Target Achieved 1 21 19 2 24 21 3
  3. 3. Jobs Applied # 1 2 3 Company Designation Applied Date Current Status
  4. 4. Client side scripting & Server side scripting Wasem hassan wazeeem456@gmail.com www.facebook.com/waseem hassan twitter.com/waseemhassan 456 in.linkedin.com/in/waseemh assan 9567850028
  5. 5. Script • Script is a set of instructions • For a web pages, they are instructions either to the web browser(client side scripting) or to the web server(server side scripting)
  6. 6. Server-side scripting • Server side scripting is used to create dynamic pages based a number of conditions when the users browser makes a request to the server • The Web Server executes the server side scripting that produces the page to be sent to the browser.
  7. 7. Server-side scripting • Server executes server-side scripts to send out a page but it does not execute client-side scripts. • Server side scripting is used to connect to the databases that reside on the web server. • Server side scripting can access the file system residing at the web server.
  8. 8. Server-side scripting • Response from a server-side script is slower as compared to a client-side script because the scripts are processed on the remote computer. • Examples of Server side scripting languages : PHP, JSP, ASP.Net, Ruby, Perl ,etc.
  9. 9. Client-side scripting • Client side scripting is used when the users browser already has all the code and the page is altered on the basis of the users input. • The Web Browser executes the client side scripting that resides at the user’s computer.
  10. 10. Client-side scripting • The browser receives the page sent by the server and executes the client-side scripts. • Client side scripting cannot be used to connect to the databases on the web server. • Client side scripting can’t access the file system that resides at the web server.
  11. 11. Client-side scripting • The files and settings that are local at the user’s computer can be accessed using Client side scripting. • Response from a client-side script is faster as compared to a server-side script because the scripts are processed on the local computer. • Examples of Client side scripting languages : Javascript, VB script, etc.
  12. 12. A ‘Simple’ Web Request Web Browser Web Server :  1 - Request an HTML Page 4 - Present HTML Content 3 - Return HTML to Browser HTML 2 - Retrieve requested HTML
  13. 13. A JavaScript Example Display Date and Time….. <!DOCTYPE html> <html> <head> <script> function displayDate() { document.getElementById("demo").innerHTML=Date(); } </script> </head> <body> <h1>My First JavaScript</h1> <p id="demo">This is a paragraph.</p> <button type="button" onclick="displayDate()">Display Date</button> </body> </html>
  14. 14. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  15. 15. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550

×