CS3L: Introduction to Symbolic Programming - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

CS3L: Introduction to Symbolic Programming

Description:

Text-align: (left or right)? Font-family: font (arial, sans-serif) ... Margin: top, right, bottom, left. Background-color: color. Javascript ... – PowerPoint PPT presentation

Number of Views:66
Avg rating:3.0/5.0
Slides: 15
Provided by: collee2
Category:

less

Transcript and Presenter's Notes

Title: CS3L: Introduction to Symbolic Programming


1
CS3L Introduction to Symbolic Programming
Bonus Lecture Web Programming
Summer 2008 Gilbert Chou cs3-ta_at_imail.eecs.be
rkeley.edu
2
Web Languages/Tools
  • HTML
  • Javascript
  • CSS
  • PHP
  • Apache, Lighttpd
  • MySQL, PostgreSQL, SQLite
  • Java, ASP.NET, Ruby on Rails, Django

3
HTML Basics
  • Tags
  • lthtmlgt ... lt/htmlgt
  • Forms
  • ltform methodGETgt lt/formgt
  • ltform methodPOSTgt lt/formgt
  • Attributes
  • ltdiv classtest idblah nameblahgtlt/divgt

4
HTML Tags
  • Structure
  • html, head, body
  • div, span
  • table, th, tr, td
  • Text
  • p, h1-6
  • Links - lta href...gt ... lt/agt
  • Include
  • script, style, link

5
HTML Forms
  • Method
  • POST versus GET
  • Action
  • Input
  • checkbox
  • radio
  • button
  • password
  • submit

6
PHP
  • Using POST and GET information
  • _GET, _POST, _REQUEST
  • Ex. echo _GET'name'
  • Syntax
  • is used at the start of variables
  • Control structures if, for, while
  • End each line with a semicolon
  • Use braces for control structures

7
HTML Attributes
  • Identifiers
  • id, class, name
  • Additional Information
  • value, selected, checked
  • Style
  • Ex. styledisplay none
  • Javascript
  • onclick, onchange

8
CSS
  • Defines how the html is displayed
  • Syntax
  • divtest_block p.text
  • color blue
  • font-size large
  • phover background-color yellow

9
CSS Options
  • Color color
  • Text-align (left or right)?
  • Font-family font (arial, sans-serif)?
  • Font-size size (large, small)?
  • Border width, style, color
  • Margin top, right, bottom, left
  • Background-color color

10
Javascript
  • Improve functionality and interface
  • AJAX
  • Javascript libraries
  • JQuery

11
JQuery
  • Events
  • click, change, hover, toggle
  • Manipulation
  • html, before, after, append, appendTo, remove
  • Effects
  • slideToggle, fadeIn, show, hide
  • Attributes
  • attr, removeAttr, css

12
SCHEME WEBSERVER!
  • Server side scripting
  • Generated HTML content
  • Special syntax
  • Quasiquote
  • Unquote ,
  • Splice _at_
  • (define (start intial-request) ...)?

13
Helper Procedures
  • extract-binding/single
  • request-bindings
  • send/suspend
  • format

14
PLT Scheme
  • Try it out
  • http//download.plt-scheme.org/drscheme/
Write a Comment
User Comments (0)
About PowerShow.com