Does the world need another front-end JavaScript framework. Apparently it does. This is a presentation on the need for a mobile and desktop web framework, and one possible rebuilding of the wheel.
And I want things
Form widgets
Dialogs
Menus
etc …
Wish List
• Platform for big or small js
• Cross-device & Cross-browser compatibility
• Install and code, sensible default app
• Ability to customize what I don’t like
• Library add-ons
Why is OO important?
Because customizing this
means copy/paste
Wheel is View-centric!
(and flexible)
Views can …
• be attached to existing browser DOM
• be built with a string
• received via ajax
• hand-built
• generate own DOM from a template
View Niceties
Superclass initialization automatically
– Finds/generates DOM
– Provides a handy this.$ for DOM manipulation
– Calls ‘listen’ after subclass ‘init’ block is called
– Sets options passed in as instance variables
– Automatically appends to parent, when parent
option provided
Ajax Mixin
• ‘data’ method to specify what will be sent to
the server
• ‘onComplete’, ‘onSuccess’, ‘onError’ methods
• prototype/instance can set the http method
• Module converts ‘put’ and ‘delete’ to ‘post’
with _method attribute
• Needs a ‘url’ attribute
Ajaxing For the Mobile Era
• Request queue instead of direct requests
• Queue stored in LocalStorage or polyfill
• Application tracks connectivity
• Sends requests and executes callbacks as
possible
More Mobile
• Touch/Gesture events
• Event Unification
• Drag/Drop Conventions
• Dynamic application loader (bandwidth)
• ??