sir how to validate the edit, this case not shown the edit for validation. because whenever validation fails, the modal will closed and need to recalled again. How to do that? thansk
ua-cam.com/video/qQ1rCbWRX_I/v-deo.html Let's check the condition in if condition as response.status == 422 (dont close modal) and response.status == 200 (your success activity)
The search option made in the first 6 min of the video didn't work out, even though the code seems to be the same as yours. I'm using Laravel 7x, can that be the reason?
I have a problem "creating default object from empty value" for id with value 1 and 2 can, but for id other than that, I get an error like that. help me sir
On edit btn.. I used class="edit_btn".. for working that button.. and I used jQuery to ... so... ur button class name and jQuery button name... should b same.... . Then only ur btn wil work.
and see my script: $(document).ready(function () { var table = $('#bootstrap-data-table').DataTable(); /start Edit table.on('click','.edit', function (){ $tr = $(this).closest('tr'); if($($tr).hasClass('child')){ $tr = $tr.prev('.parent'); } var data = table.row($tr).data(); console.log(data); $('#productName').val(data[1]); $('#unit_measure').val(data[2]); $('#price').val(data[3]); $('#editForm').attr('action','/addproductRoute/'+ data[0]); $('#editModal').modal('show'); }); table.on('click','.delete', function (){ $tr = $(this).closest('tr'); if($($tr).hasClass('child')){ $tr = $tr.prev('.parent'); } var data = table.row($tr).data(); console.log(data); $('#deleteForm').attr('action','/addproductRoute/'+ data[0]); $('#deleteModal').modal('show'); }); }); Please in case we can chats: on whatsApp # +255719260602 or Email: emma4082@gmail.com for further assistance
Sir i wanna ask something, i'm on build an application with laravel and i'm stuck in a case, so i build an input form where i want to use modal pop up to show and search users data(like name and phone number), after that i'm select the user with a button select and automaticly the data inputed into a input form, how to do that with modal sir? selected data and send that data to input form, i've been so frustrated with that, thank you very much sir. Sorry for my bad english
Check your id or and make sure... ur edit popup model id is different from ur inserting popup model... bczz... it clashes... This might be the for this ..
@@kenny4971 There are many actually. Some are better then others, but all that I found require some centralization if you are going to use dataTables across your application with different models and etc. Here is one: github.com/avinashn/Ajax-CRUD-example-in-laravel
@@nikolacvetkovic4549 yes I've seen this one, i was looking to do more customozations by adding an action column and having aquery from multiple tables. You've seen anything along those lines?
Hello, I've used this method and actually I made it work but now it doesn't. There is an error in the console saying: jquery-3.4.1.slim.min.js:2 Uncaught TypeError: $(...).DataTables is not a function at HTMLDocument. (admin:258) at e (jquery-3.4.1.slim.min.js:2) at t (jquery-3.4.1.slim.min.js:2) Can anyone help solve this?
thanks man..very usefull tutorial
One tip for anyone who suffered the error DataTable is not a function, just add defer attribute to the two datatable script
give example please
Thank you for the video. Requires Bootstrap CDN. Do you have sample for Tailwind CSS instead?
make videos related to showing bootstrap model when we click on particular id it will display the popup detail based on the clicked id. thank you
He just did... All you need to do is use the same procedure to edit the data, but eliminate the form fields.
How to update data when i have Files on form ???
Sir,please answer me,I followed each single step ya made,but the modals not popping up,please sir
The update won't work for me, when I click Update is show nothing. how can I check if the ID is passing to Controller?
my update popup is not showing
Hi, what if we didn't show the ID on the table? Can we still pass it into Modal?
never mind i still could do it
Just put the id in the button value or create attribute in the button and put the id init.
And then get the id from it.
im sorry sir, why my data table cant work like yours. thanks
sir how to validate the edit, this case not shown the edit for validation. because whenever validation fails, the modal will closed and need to recalled again. How to do that? thansk
ua-cam.com/video/qQ1rCbWRX_I/v-deo.html
Let's check the condition in if condition as response.status == 422 (dont close modal) and response.status == 200 (your success activity)
hey what if i want to show more data that is not shown in the table but they are available in the db ?
any solution?
Missing argument 2 for App\Http\Controllers\systemcontroller::update()
Having to specify an id in the js, doesn't seem like a good solution. What if the id of any of the rows changes?
Good .. but how to show validation inside module when click btn save
Edit operation is not working..
The search option made in the first 6 min of the video didn't work out, even though the code seems to be the same as yours. I'm using Laravel 7x, can that be the reason?
how to retrive file url
Very helpful
di function read() ada $(#read) itu dari mn?? merujuk kemana min?
The PUT method is not supported for this route. Supported methods: GET, HEAD, POST.
i dnt know wht i 've t do. can someone help me?
I'm also having that problem. Did you have a solution for that?
@@miminghadoop @method('PUT') in your form
have u got the solution,, because im having the same problem now
Add this in your form : @method('PUT')
And your route will be as : Route::put
@@fundaofwebit what u mean by Route::put,,i should write it in my web.php?
What if I don't want to display the ID of my models in the table? How would I get the ID in the jQuery code to delete it from the Database as well?
Use input type="hidden" And call the id in this input tag.. And fetch it by jquery .val()
Hi, when I try to update the last row of my data table it's appeared in the previous row of it. Only for the last row showing this problem.
same problem
I have a problem "creating default object from empty value" for id with value 1 and 2 can, but for id other than that, I get an error like that. help me sir
thanks bro, thats help... still awesome!
hello,,, my Edit button is not working,, why
On edit btn.. I used class="edit_btn".. for working that button.. and I used jQuery to ... so... ur button class name and jQuery button name... should b same.... .
Then only ur btn wil work.
@@fundaofwebit see my button code: EDIT
DELETE
and see my script:
$(document).ready(function () {
var table = $('#bootstrap-data-table').DataTable();
/start Edit
table.on('click','.edit', function (){
$tr = $(this).closest('tr');
if($($tr).hasClass('child')){
$tr = $tr.prev('.parent');
}
var data = table.row($tr).data();
console.log(data);
$('#productName').val(data[1]);
$('#unit_measure').val(data[2]);
$('#price').val(data[3]);
$('#editForm').attr('action','/addproductRoute/'+ data[0]);
$('#editModal').modal('show');
});
table.on('click','.delete', function (){
$tr = $(this).closest('tr');
if($($tr).hasClass('child')){
$tr = $tr.prev('.parent');
}
var data = table.row($tr).data();
console.log(data);
$('#deleteForm').attr('action','/addproductRoute/'+ data[0]);
$('#deleteModal').modal('show');
});
});
Please in case we can chats: on whatsApp # +255719260602 or Email: emma4082@gmail.com for further assistance
same problem, did u fix it?
did you guys solve this?
Thanks you for share
Thank you for supporting me. 😊
Plz subscribe, like and share.
Sir i wanna ask something, i'm on build an application with laravel and i'm stuck in a case, so i build an input form where i want to use modal pop up to show and search users data(like name and phone number), after that i'm select the user with a button select and automaticly the data inputed into a input form, how to do that with modal sir? selected data and send that data to input form, i've been so frustrated with that, thank you very much sir. Sorry for my bad english
same problem here, do you get that problem now?
Gracias por los cositos
gracias por apoyarme..
Por favor, dime y suscríbete a mi canal. :-)
I have a question, is the any similar tool to datatables but to filter columns using dropdown lists instead of search box?
Select2 is dropdown search option it gives.. Jquery..
When i updated the data is not working. i copy every single code but still is not working. why?
Check your id or and make sure... ur edit popup model id is different from ur inserting popup model... bczz... it clashes...
This might be the for this ..
@@fundaofwebit The popup modal is working but when i edit new data is not working. i got an error 'no message' the error i got
@@kennethpineda6143 .. ur input type id .... of edit model... and inser t model ... should not b same....
Then only.. it cn fetch the data.
Sir plz create videos on image also with Ajax bootstrap Modal
Can i get your this source code, please ?
script code ???
anyone can send me a link of script code
@Funda_of_Web_IT Can you please share the link to the source code?
Sorry to Say. i did not keep any backup of this video.
Thank you for supporting me. Plzz Subscribe, like n share. :-)
@@fundaofwebit No problem, I found another example elsewhere.. Thanks for the video!
@@nikolacvetkovic4549 where did you find an example?
@@kenny4971 There are many actually. Some are better then others, but all that I found require some centralization if you are going to use dataTables across your application with different models and etc. Here is one:
github.com/avinashn/Ajax-CRUD-example-in-laravel
@@nikolacvetkovic4549 yes I've seen this one, i was looking to do more customozations by adding an action column and having aquery from multiple tables. You've seen anything along those lines?
Hello, okay
Okay
@@toppi7755 Okay
Source Code ??
Hello, I've used this method and actually I made it work but now it doesn't. There is an error in the console saying:
jquery-3.4.1.slim.min.js:2 Uncaught TypeError: $(...).DataTables is not a function
at HTMLDocument. (admin:258)
at e (jquery-3.4.1.slim.min.js:2)
at t (jquery-3.4.1.slim.min.js:2)
Can anyone help solve this?
Have u conneced datatable js ?
I think the name of the video is too load for js libary
nobody:
funda : okey
Okay
it's not work bro
sir please provide code