Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building a Programmable Web

Building a Programmable Web

A basic into to client side technologies for building web pages - HTML/CSS, JavaScript, JQuery, AJAX, JSON, etc. A lecture by Programming Club, IIT Rajasthan.

The starter kit, with the bootstrap code can be found at http://home.iitj.ac.in/~sankha/dwnld/starter-kit.zip

Sankha Narayan Guria

August 19, 2012
Tweet

More Decks by Sankha Narayan Guria

Other Decks in Programming

Transcript

  1. HTML • A simple structured way to represent documents. •

    Think of them as ‘struct’ of C. • Each entity is an object.
  2. CSS • Name explains it – Gives styles to document.

    • Simple declarations to set properties of object in HTML documents.
  3. CSS body { font-size: 20px; color: #ff0000; } … …

    <link href="style.css" rel="stylesheet" type="text/css" />
  4. Insight into web pages • Why do other web pages

    look awesome? • Can we learn from them? HOW?
  5. Why and Where JavaScript? • Bringing interaction in pages? •

    Seriously do you like to see plain web pages or pages that can respond to you? • For the programming geeks – if you want arrays, sorting and searching, its there!
  6. Why and Where JavaScript? • Can you make a calculator

    in plain HTML? • Nope! You need JavaScript. • Lets make one.
  7. Why and Where JavaScript? • Its functional and object oriented.

    • Dynamic data types. • All classes, functions and variables are interchangeable. • Nested functions. • Callbacks.
  8. AJAX • Imagine doing pages loading for every little content

    that appears on your screen. • Even that “Loading …” yellow bar that you sometimes see on top of GMail. • AJAX – Asynchronous Java And XML • Make asynchronous requests for the benefit of the world.
  9. JQuery • Doing AJAX requests are difficult. • People are

    there to make it simpler. • So we have
  10. JQuery • It’s a JavaScript library, something like stdio.h in

    C. • Not just for AJAX requests, it is useful for manipulating your pages as well. • Add content to your pages, or make them disappear, or even animate them. • Lots more!
  11. Data? • We are just blabbering about programming, functions, etc.

    • How do we store data? • How do we store structured data? • Wait! We have JSON.