Firstly, I am the author of JavaScriptMVC, so I am extremely biased in a variety of ways. First, there are six things in a JS application:
- Download scripts
- Response to user events
- Update DOM
- Request data from the server
- Convert this data to something useful for JavaScript
- - .
, /.
.
. .
JavaScriptMVC MVC, OpenAjax.
$. , jQuery. , -ui-, . , "tab.activate", :
$('.tab').trigger('tab.activated')
tab.activated , :
".flickr tab.activated" : function(tabEl, ev){
Flickr.findAll({type : "rainbows"}, function(images){
tabEl.html("//path/to/view", images );
}
}
Flickr.findAll flickr, . service/ajax .
, html . , , , . , , . , - , , - .
- , . , ( ) , .