Slide 24
Slide 24 text
‹#›
@tpryan
So now this
var url = this.protocol + this.host + this.uri_location_list;
var type = "POST";
if (location.id != 0){
url += location.id;
type = "PUT";
}
$.ajax({
url: url,
type: type,
data: location,
success: successHandler,
error: errorHandler
}); UI
var url = this.protocol + this.host + this.uri_location_list;
var type = "POST";
if (location.id != 0){
url += location.id;
type = "PUT";
}
$.ajax({
url: url,
type: type,
data: location,
success: successHandler,
error: errorHandler
});