1. Trang chủ
  2. » Công Nghệ Thông Tin

Chapter 6: Clientside dynamics pages pdf

23 88 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 23
Dung lượng 75,95 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Client-side dynamic pages JavaScript... Javascript, VBscript Javascript: Netscape.. Applet: Advantage/disadvantage Advantages of Applet: Applets are cross platform and can run on Wind

Trang 1

Chapter 6: side dynamics

Client-pages

Trang 2

 Client-side dynamic pages

 JavaScript

Trang 3

Client-side dynamic pages

executed in the client side by browser.

Trang 4

Javascript, VBscript

 Javascript:

Netscape

compiled languages such as C and C++

very useful for shorter programs

 Vbscript

Trang 5

mozila and internet explorer

access system resources on the local computer

Trang 6

Applet: Advantage/disadvantage

 Advantages of Applet:

 Applets are cross platform and can run on Windows, Mac OS and Linux platform

 Applets can work all the version of Java Plugin

 Applets runs in a sandbox, so the user does not need to trust the code,

so it can work without security approval

 Applets are supported by most web browsers

 Applets are cached in most web browsers, so will be quick to load when returning to a web page

 User can also have full access to the machine if user allows

 Disadvantages of Java Applet:

 Java plug-in is required to run applet

 Java applet requires JVM so first time it takes significant startup time

 If applet is not already cached in the machine, it will be downloaded

from internet and will take time

 Its difficult to desing and build good user interface in applets

Trang 7

 Previously called Macromedia Flash

pages

web page components, to integrate video into web pages, and morerecently, to develop rich Internet applications

because:

 Flash movies load faster and save on download time because Flash is vector based whereas HTML is not

 Flash intelligently ‘caches’ it’s movies so they don’t have to be reloaded

 Flash gives the user (the person viewing/using the Flash movie) a more responsive ‘rich-client’ like experience

Trang 9

 Javascript allows:

 Ex: code to virsualise the current time

Trang 10

Put Javascript into HTML

Trang 11

 Function call is put inside <script> … </script>

Trang 14

Data type in Javascript

 Basic data type

 Contain basic character

Trang 15

Variable in Javascript

 Like a variable in other programming language

 Data type is not defined at variable declaration

 String

 Array

Trang 17

Operators, Control Structure

 Same syntax as Java

Trang 18

Function in Javascript

 Function

Trang 19

Function in Javascript

 Declaration of a function with parameters

function function_name (param_1, param_2, … param_n){

Trang 21

 Event of closing a webpage

 Mouse related event

Trang 23

Call a javascript function by an event

Ngày đăng: 28/06/2014, 02:20