Weitere ähnliche Inhalte
Ähnlich wie Js atmeme (20)
Kürzlich hochgeladen (20)
Js atmeme
- 28. FOR FREE
AJAX RESPONSE WITH CONTEXT
var success_function = function (context) {
[...]
}
goodstuff.ajax.set_link_ajax(element, success, ...);
- 31. goodstuff.ajax.some_ajax = function () {
var error, success, loading;
error = function (response, context) {
[...]
};
success = function (response, context) {
[...]
};
loading = function (context) {
[...]
};
goodstuff.ajax.set_link_ajax(link, error, success, loading);
};
- 38. THE SOLUTION
$template = $framework->getJSONTemplate(...)
+
goodstuff.ajax.bind_json_template(json_data, template);
template.php
view.php
ajax.js