- jQuery
- jQueryUI
KaraCos UI provides core ui elements linked with a KaraCos backend.
Initialize KaraCos :
<script>
conf = {};
new KaraCos(conf);
</script>
The conf object content will activate modules and provide conf for each.
Process a KaraCos action, params :
{
url:'/',//required
method:'', //required
params: {},
async: false,
callback:function(data) {},
error: function() {}
}
data is the form data, form the server-provided jst form id exist, params :
{
url: "/", // required
form: "login", // required
callback: function(data,form){},
error: function(){},
async: false
}
conf = {
auth: {
// enables facebook (requires menestrel MDomain)
facebook: { appId:'your_app_id',
cookie:true,
status:true,
xfbml:true
}
}
};
Draws authentication menu in elemselector/
params :
- callback : function
- error : function
Executes callback if user is connected, else shows a login window then process callback if login successed, otherwise process error
- AJAX browsing elements
- VIE based editable content
- Children's collection using Backend.js