score:1
Accepted answer
Try this.
Rewrite route to the following:
Route::post('/quantityUpdate', 'QuantityController@quantityUpdate');
In your view file script, change to the following:
$('#products_table').Tabledit({
url: '/quantityUpdate',
columns: {
identifier: [0, 'id'],
editable: [[4, 'quantity']]
},
onSuccess: function(data, textStatus, jqXHR) {
console.log(data);
},
onFail: function(jqXHR, textStatus, errorThrown) {
},
onAjax: function(action, serialize) {
console.log("on Ajax");
console.log("action : ", action);
console.log("data : ", serialize);
}
});
In your VerifyCsrfToken.php file:
protected $except = [
'/quantityUpdate'
];
And finally, in your quantityUpdate controller, change the code to:
\Log::info($request->all());
and that should work.
Related Query
- jQuery AJAX POST request throws Uncaught SyntaxError: Unexpected Identifier
- Firefox <input type="file" /> calling jquery val throws "NS_ERROR_DOM_SECURITY_ERR"
- Jquery - changing background image - throws weird error
- jQuery AJAX post method throws 405 (Method Not Allowed) error
- jQuery Ajax throws error while using JSON Parse for Wikipedia API
- jQuery Datatables with Ajax function throws error on ajax.reload()
- How to send multiple Identifier in Tabledit jquery
- tabledit with datatable jquery
- Vue-Router throws "ReferenceError: jQuery is not defined"
- jQuery Tabledit with multiselect drop-down
- jQuery animate with dynamic properties, throws error Expected identifier, string or number
- AJAX & jQuery $.getJSON(...) throws XMLHttpRequest
- jquery plugin function throws undefined function error
- jQuery Validate Plugin throws error when checking username
- Bootstrap Form with jQuery Validation does not work, Throws undefined function error in jQuery
- jquery & doc.createElement throws error for <
- Silex: jQuery AJAX request throws exception - No route found for "GET ..."
- java IBM portlet project - Where to put my css and jquery
- Need help porting jQuery to Magento
- Jquery slideToggle not applied to children in menu?
- JQuery calling the function
- jQuery UI-Resizable Adding an Unwanted Margin
- Passing array between php and jquery back and forth
- jQuery .load() callback firing early
- Cannot get jQuery animation function to fire
- Auto selected li in a menu using jQuery
- How to make this jquery pagination work with my perl application
- Google apps script: jquery is not working
- Enter only numbers and "-" in textbox using jquery
- JQuery built anchor tag will not redirect
- jQuery Dialog - Object doesn't support property or method 'dialog'
- Image wont become non-opaque when hovered over jquery
- jquery bind dblclick event to multiple elements
- use more than one property in css method in jquery
- jquery extend method (extend order)
- Uncaught TypeError: undefined is not a function in my jQuery script
- Is jquery 1.x's live, live as in life or live as in a live tv show?
- Disabling input field (submit button) doesnt work with jquery 1.7
- JQuery plugin dotdotdot not working
- Jquery click event after after creating div
- Issue on jQuery mouseout on Bootstrap 3 Dropdown
- Create two columns(lists) of text boxes using jquery
- Pushing JQuery promises into array executes deferred functions Asynchronously
- Add hover and thumbnail support with jQuery
- .append() not injecting content correctly in jQuery
- Jquery Ui modal open doubleclick on row
- How to make jQuery callback like .done in AJAX?
- jQuery AJAX: Don't Reload Page when Submitted
- Populate dropdown with JSON and jQuery
- How to remove the blue border after selecting on a chosen selectbox jquery plugin
More Query from same tag
- How to make single row Non scrollable in HTML
- Jquery finding elements with HTML5 data attributes, using data object
- Convert all date/datetime elements to local timezone
- jQuery select box onchange event
- jQuery hide(), delay() and clearTimeout() not Working as Expected
- Fullcalendar returning epoch time values to the database
- Add check box result together to make a binary number
- Show when clicked on any of <li> elements
- exit from parent function according to ajax success callback return value
- on click java script redirect to another page
- stop countdown when reaches 0
- ASP.NET Link Button change on jQuery slider
- Getting contacts from ContactsApp Service for autocomplete using GAS
- Link <a> generated after AJAX doesn't work
- How to quit parent function after AJAX response
- How to linked or making related two different contents
- How to reveal hidden div on external page contained with in with iframe
- AJAX request not finding model id
- Submit data from jQuery DataTables
- Image elements will not scale to screen size in Firefox or Chrome?
- How to pass html in jquery datatables row add function
- Link that open modal and callto in the same time
- How is this layout issue commonly addressed?
- add value of attribute with specific condition on list items
- Update total from checkbox data vaules
- Parsley.js issues, adding class to parent of form field
- Object Height with different sized images
- jquery is not working inside laravel 7 mix
- array of numbers to integers
- html change image icon if active Framework7