JavaScript

1. Java Script Module 2. World Wide Web (WWW) 3. Web Terms 4. NEED FOR SCRIPT 5. Introduction to Internet Programming 6. CLIENT SIDE and SERVER SIDE Scripting 7. Different Scripting Languages 8. Introduction to JavaScript 9. JavaScript and Security 10. How to Enable JavaScript 11. Advantages of Java Script 12. Limitations with JavaScript 13. Difference between JavaScript and JAVA 14. Difference between JavaScript and VBScript 15. JavaScript Development Tools 16. JavaScript Programming Techniques 17. JavaScript terms 18. Starting with JavaScript Programming step by step 19. Time to start JavaScript Programming 20. JavaScript Variables 21. JavaScript RESERVED WORDS 22. JavaScript Data Type 23. NUMBER DATA TYPE 24. BOOLEAN DATA TYPE 25. STRING DATA TYPE 26. NULL DATA TYPE 27. JavaScript Undefined DATA TYPE 28. JavaScript Operators 29. JavaScript Arithmetic Operators 30. JavaScript Logical Operators 31. JavaScript Comparison Operators 32. JavaScript String Operators 33. Bit Manipulation Operators 34. JavaScript Assignment Operators 35. JavaScript Conditional Operator 36. Conversion between JavaScript Data Types 37. Alert JavaScript function 38. confirm JavaScript function 39. prompt JavaScript function 40. JavaScript Statements 41. Single line & Multi-line Comments 42. JavaScrip If Statement 43. JavaScript if..else Statements 44. JavaScript If…else..if statement. 45. JavaScript For Statement 46. JavaScript For..in Statement: 47. JavaScript While Statement 48. JavaScript do while Statement: 49. JavaScript break and continue statement 50. JavaScript switch Statement: 51. JavaScript function() 52. JavaScript function with a Return Value 53. JavaScript with Statement 54. try, catch, and throw Statements 55. JavaScript ARRAY 56. JavaScript array of different data types 57. JavaScript ARRAY and Bubble sorting Program 58. JavaScript Array Methods 59. concate() method 60. every() method 61. filter() method 62. forEach() method 63. indexOf() method 64. Join() method 65. lastIndexOf() method 66. map() method 67. reduce() method 68. reduceRight() method 69. reverse() method 70. some() method 71. toSource() method 72. toString() method 73. pop() method 74. push() method 75. shift () method 76. slice () method 77. splice () method 78. sort() method 79. unshift() method 80. EVENT handling with JavaScript 81. onblur JavaScript Event 82. onchange JavaScript Event 83. onclick JavaScript Event 84. onDblClick JavaScript Event 85. onfocus JavaScript Event 86. onkeydown JavaScript Event 87. onkeyup JavaScript Event 88. Onkeypress JavaScript Event 89. onLoad JavaScript Event 90. onMousedown JavaScript Event 91. onMouseup JavaScript Event 92. Onmouseover JavaScript Event 93. onmouseout JavaScript Event 94. onMouseMove JavaScript Event 95. onReset JavaScript Event 96. onsubmit JavaScript Event 97. onUnload JavaScript Event 98. The Screen Object 99. JavaScript Interview Part1 100. JavaScript Interview Part2 101. JavaScript Interview Part3 102. JavaScript Interview Part4 103. JavaScript Interview Part5 104. JavaScript Interview Part6 105. JavaScript Interview Part7 106. JavaScript Interview Part8 107. JavaScript Interview Part9 108. JavaScript Interview Part10
Pr.Pg Next Pg

CLIENT SIDE and SERVER SIDE Scripting tutorials

Client-side:

  • The client is the system on which the Web browser is running. 

  • JavaScript is the main client-side scripting language for the Web. 

  • Client-side scripts are interpreted by the browser. The process with client-side scripting is:

    1. The user requests a Web page from the server

    2. The server finds the page and sends it to the user

  • The page is displayed on the browser with any scripts running during or after display

  • So client-side scripting is used to make Web pages change after they arrive at the browser.

  • It is useful for making pages a bit more interesting and user-friendly. It can also provide useful gadgets such as calculators, clocks etc. but on the whole is used for appearance and interaction.

  • Client-side scripts rely on the user's computer.

  • This type of computer programming is an important part of the Dynamic HTML (DHTML) concept, enabling web pages to be scripted; that is, to have different and changing content depending on user input, environmental conditions (such as the time of day), or other variables.

  • Due to security restrictions, client-side scripts may not be allowed to access the user's computer beyond the web browser application. Techniques like ActiveX controls can be used to sidestep this restriction.

  • Client-side scripting is not inherently unsafe. Users are encouraged to always keep their web browsers up-to-date to avoid exposing their computer and data to vulnerabilities that are discovered.

  • Client side scripting cannot access the file system that resides at the web server.

  • Client side scripting can be blocked by user.

  • Response from a client-side script is faster as compared to a server-side script because the scripts are processed on the local computer.

  • Example: Traditionally for Client site scrirpint is JavaScript, VBScript and so on.

 

Server-side:

  • The server is where the Web page and other content lives. The server sends pages to the user/client on request. The process is:

    1. The user requests a Web page from the server

    2. The script in the page is interpreted by the server creating or changing the page content to suit the user and the occasion and/or passing data around

    3. The page in its final form is sent to the user and then cannot be changed using 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.
  • Server-side scripting tends to be used for allowing users to have individual accounts and providing data from databases.
  • It allows a level of privacy, personalization and provision of information that is very powerful. E-commerce and social networking sites all rely heavily on server-side scripting.
  • Example: For Server side scripting tools like PERL, CGI, PHP, ASP.net, JAVA and serer-side VBScript.
  • Although JavaScript can be used for Server application, it is not ideal for writing Server side scripts because of its limitation.
  • Server side scripting can accss the file system residing at the web server.
  • Server side scripting cannot be blocked by user.
  • Response from a server-side script is slower as compared to a client-side script because the scripts are processed on the remote computer.
  • A site such as Google, Amazon, Facebook or Hobowars will use both types of scripting:
    1. server-side handles logging in, personal information and preferences and provides the specific data which the user wants (and allows new data to be stored)

    2. client-side makes the page interactive, displaying or sorting data in different ways if the user asks for that by clicking on elements with event triggers

 

Pr.Pg border                                              Next Pg