Sono nuovo alla richiesta Ajax e ho creato il seguente Pastie. La riga 107 è il mio $ .PUT e lancia un errore in firebug che $ .PUT non ha una funzione. Per quanto riguarda la richiesta Ajax, so che questo è sbagliato, ma sono abbastanza perso su ciò che devo fare all'interno della funzione di successo addCell. Sto andando nel modo giusto a riguardo?PUT Richiesta Ajax
cura
function _ajax_request(url, data, callback, type, method) {
return jQuery.ajax({
type: 'PUT',
url: "slot_days/show",
data: data,
success: function(data)
{
callback($.put('/slot_days/show', { '/slot_days/': 'slot_times' }, function(result)
{
});
)
}
});
}
jQuery.extend({
put: function(url, data, callback, type) {
return _ajax_request(url, data, callback, type, 'PUT');
}});
Cosa è richiesto PUT o POST? –