Table of Contents: Developing Web Widget With HTML, CSS, JSON and AJAX
Table of Contents: Developing Web Widget With HTML, CSS, JSON and AJAX
Rajesh Lal
Lakshmi Chava
Contents at a Glance
Introduction................................................................................................................. 1
Table of Contents
Introduction 1
Section 1: Introducing Web Widget 2
Section 2: Developing Widget for Prime Time 2
Section 3: Advanced Samples 2
Appendix: Widget Business Model 2
Special Features and Notations 3
Supporting Website(s) 3
What is a Web Widget? 9
5 Creating Hello World Widget with HTML, CSS, and JavaScript 107
Hello World Widget 108
Widget Overview 108
Developing the Hello World Widget 110
Core functionality with JavaScript 113
Summary 116
-
Creating a View only Widget with JSON 127
Creating Update-able Widget 146
Using a server page to update data from a widget 147
Ajax for In-page Updates in a Widget 155
Ajax using cross site scripting 157
HTTP handler object 157
Putting it all together 160
Summary 161
Part III 10 Creating an RSS Widget with Ajax, Proxy Server and Feed APIs 265
RSS Widget 266
Online Feeds 266
Creating a Widget using HTML, RSS feed and Ajax 274
Cross Domain RSS Feed using Proxy Server 281
RSS Widget using Google AJAX Feed API 285
Widget with Adobe Flash and Microsoft Silverlight 289
Summary 292
Lakshmi Chava is a software engineer with eight years of experience in web design and
development.
Table of Contents
Developing Web Widget with HTML, CSS, JSON and AJAX 11
Dedication
To Aanya, the little angel - Rajesh Lal
Acknowledgement
Writing is a fascinating journey, but it is also sometimes long and tiring. I would like to extend my
special thanks to all my friends and family who supported me during this journey. Specially my
mom and dad and my brothers Rakesh and Rajeev, for all the wonderful things I have learned from
them, and Simple, and Shilpi for just, being so wonderful, and to my inspiration and my wife Neelu
and to Aanya, the little angel the most beautiful thing happned to us in the last ten years.