Sha256: d17e14ec3f0814e160256c8b84882a8ce99d8731c760f15dec0e02ec14344974
Contents?: true
Size: 1.2 KB
Versions: 26
Compression:
Stored size: 1.2 KB
Contents
Edifice ======= Edifice is a Javascript framework released as a rails plugin. framework.js + associated helpers --------------------------------- The idea here is to communicate which view is rendering to the javascript so that we can call the correct javascript files in an automagical way. All you need to do is add <%= edifice_meta_tags %> to your layout, in the head. Then if you render an action, such as users/show, in the layout application, these functions[if they exist] will be fired on these js objects in the following order: document.ready: - usersShow.onReady - layoutsApplication.onReady - [widgets are loaded] - usersShow.onWidgetReady - layoutsApplication.onWidgetReady document.load: - usersShow.onLoad - layoutsApplication.onLoad suppose we then subsequently load users/edit via ajax, in the layout xhr. Then the following events will fire: - usersEdit.onAjaxComplete - layoutsXhr.onAjaxComplete - usersShow.onAjaxComplete - layoutsApplication.onAjaxComplete - [widgets are loaded] - usersEdit.onWidgetReady - layoutsXhr.onWidgetReady - usersShow.onWidgetReady - layoutsApplication.onWidgetReady widgets ------- forms ----- Copyright (c) 2010 iCyte, released under the MIT license
Version data entries
26 entries across 26 versions & 1 rubygems