CMPT165_10_WebForms

CMPT165_10_WebForms - 1 Web forms Like art forms, only less...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 Web forms Like art forms, only less classy Colin Stewart, 2009 Dynamic web pages Dynamic web pages we've mentioned dynamic web pages briefly before they are web pages that are interactive web pages can become dynamic by writing code for them with a programming language (e.g. Python) there are two places where this code can run: h on the server h on the client (i.e. in the browser) both are useful for different things 2 Server Server-side programs side programs server-side programs run on a web server (i.e. the same computer that has a site's HTML pages, images, etc.) server-side programs are used when a web page h must use or modify information that is on the web server i.e. information that is not on the client's computer h needs the web server to provide a service that the client cannot do itself Server Server-side programs side programs some server-side languages are Python, PHP and ASP h PHP and ASP are more commonly used than Python, but are more difficult to learn server-side programs are often referred to as CGI 3 Server Server-side examples side examples some examples of server-side programs: search engines (e.g. Google): h searching involves looking through a catalog of web pages h this catalog is on a web server, not your computer university registration systems h systems like these have a catalog of course information h this catalog is, again, on a web server Server Server-side examples side examples online shops (e.g. Amazon) h the catalog with all the product information is on a web server h also, when you buy something online, you're sending a message to the web server to say what you want, and where to ship it online email programs (e.g. Gmail) h when you send an email, it's the web server that figures out how to deliver it 4 Client Client-side programs side programs client-side programs, unlike server-side programs, run only on the client's computer (usually in a web browser) client-side programs are used when no interaction with the web server is necessary some client-side languages are JavaScript, VBScript, and Flash Java can also be used to write client-side programs called applets Client Client-side programs side programs client-side programs are typically used to add visual effects to static pages that can't be done with HTML for example: h menus that appear when you mouse-over them h animations/sounds that play when you click on links h parts of the page that appear/disappear/ change with a mouse-click 5 Client Client-side programs side programs client-side programs can also be used to run more substantial programs entirely in your browser h simple single-player Internet games h Google Docs an online office suite, like MS Office is largely client-side Dynamic web pages Dynamic web pages many dynamic web pages use a combination of server- and client-side programs for example, an online email program will use...
View Full Document

This note was uploaded on 07/30/2009 for the course CMPT 165 taught by Professor Ramesh during the Summer '09 term at Simon Fraser.

Page1 / 27

CMPT165_10_WebForms - 1 Web forms Like art forms, only less...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online