KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am new to doing Ajax request and have put together the following Pastie . Line 107 is my $.PUT and is throwing an error in firebug that $.PUT does not a function. As for the ajax request I know this is wrong however I am quite lost as to what I need to do inside the success function addCell. Am I going the right way about this? Edited 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'); }});
Tags (comma-separated)
Save Edits
Cancel