Home

Class mvc.AjaxSync

Instance Method Summary
create()
del()
onCreateComplete_(?mvc.Model model, ?Function callback, ?goog.events.Event e)

override this to do processing on returned data

onDelComplete_(?mvc.Model model, ?Function callback, ?Event e)

override this to do processing on returned data

onReadComplete_(?mvc.Model model, ?Function callback, ?goog.events.Event e)

override this to do processing on returned data

onUpdateComplete_(?mvc.Model model, ?Function callback, ?Event e)

override this to do processing on returned data

read()
update()
urlifyString(string val) ⇒ function ((mvc.Model|null)): string

takes a string defining a url where :attribute will return that models attribute. e.g. var obj = new mvc.Model({attrs:{'id': 'fred'}}); var urlGen = urlifyString("/object=:id/blah"); urlGen(obj); // returns "/object=fred/blah"