slide deck

8
Rich Internet Applications With PHP, REST, and ExtJS

description

 

Transcript of slide deck

Page 1: slide deck

Rich Internet ApplicationsWith PHP, REST, and ExtJS

Page 2: slide deck

Traditional Web Apps• All processing done on the server• Every request means reloading the

entire page• UI limited to widgets provided by HTML

Page 3: slide deck

RIAs• Features of traditional desktop apps• UI processing done on the browser

– Widgets– Events– Page redraws

• Data manipulation and storage done on the server

• Asynchronous communication

Page 4: slide deck

Benefits of RIAs• Richer UI (grids, trees, drag-n-drop)• More responsive• Free up server resources• No need to distribute (as opposed to a

desktop app)• They are sexy

Page 5: slide deck

Drawbacks• Depend on JavaScript and a modern

browser• Give away control• Breaks the “Web Pages” paradigm• Accessibility Issues• Probably bad for search engines

Page 6: slide deck

When to use them• Web Applications as opposed to Web

Sites• Replacement for desktop app• Enhancement to a traditional webapp

Page 7: slide deck

ExtJS• Great widgets and utilities

– Grids, Trees, Forms, Dialogs, etc.– Ajax, DOM, JSON, XML parsing, etc.

• Excellent API, very consistent• Compatible with modern browsers:

– Internet Explorer 6+ – Firefox 1.5+ (PC, Mac) – Safari 2+ – Opera 9+ (PC, Mac)

• Independent of server-side technology• Good looking themes• A bit of a learning curve

Let’s Try it!!

Page 8: slide deck

REST• Architectural style for inter-system communication• Treats data as resources• Based on the HTTP protocol• Alternative to RPC style of communication

RPC Style (methods) REST Style (resources)

getUser() addUser() removeUser() updateUser() getLocation() addLocation() removeLocation() updateLocation() listUsers()listLocations()

http://example.com/users/ http://example.com/users/{user} http://example.com/findUserForm http://example.com/locations/ http://example.com/locations/{location} http://example.com/findLocationForm