Category : jquery

I am trying to bind edit form modal, I have an edit button ‘edit-button" when I click it, an edit modal shown but data returned via route doesn’t made. my ajax code: var SITEURL = ‘{{URL::to(”)}}’; $(‘body’).on(‘click’, ‘#edit-event’, function () { var event_id = $(this).data(‘id’); $.get(SITEURL + ‘/portal/event/edit/’ + event_id, function (data) { $(‘#editHeadingModal’).html("Edit Event"); ..

Read more

This may seem duplicate but I have this problem using AJAX and I dont know how to fix it. Routes: web.php Route::get(‘/{name}/{code}’,[AppHttpControllersTestController::class, ‘counter’]); Route::post(‘/{name}/{code}’,[AppHttpControllersTestController::class, ‘sender’])->name(‘sender’); Controller: TestController.php public function counter() { return view(‘room’); } public function sender(Request $request) { $xd = array( ‘1’ => request(‘text’), ‘2’ => Request::url() ); event(new TestEvent($xd)); } View: room.blade.php: <!doctype ..

Read more

I have dynamic fields with dependent 3 level select boxes The problems is the dependent select boxes not working laravel blade <tbody class="addMoreProduct"> <tr> <td>1</td> <td> <select name="categorie_id[0]" id="categorie_id" class="form-control categorie_id " > <option value=""> choisir categorie </option> @foreach ($categories as $categorie) <option value="{{ $categorie->id }}"> {{ $categorie->categorie_name }} </option> @endforeach </select> </td> <td> <select ..

Read more

I’m working On tab, I’m getting problem When I Redirect Tab. I need To Redirect Nested Tab On click Main Tab It Is Possible ? MyScript $(“.parentTabs a.nav-link”).on(“click”, function () { alert(); var curId = $(this).attr(“href”); $(“.tab-pane”).removeClass(“active show”); $(“.nav-justified .nav-link”).removeClass(“active”); $(“.tab-pane” + curId).addClass(“active show”); }); $(“.chieldTabs a.chield-nav”).on(“click”, function () { $(“.chieldTabs a.chield-nav”).removeClass(“active show”); $(this).addClass(“active”); var ..

Read more

[ { "id": 24, "name": "test product", "qnt": 2, "sale_price": 30, "buy_price": 14, "stock": 45, "total": 60, "serials": [ { "id": 36, "product_id": 24, "serial": "222", "is_sale": 0, "created_at": null, "updated_at": null }, ] }, { "id": 28, "name": "test2", "qnt": 1, "sale_price": 18, "buy_price": 12, "stock": 44, "total": 18, "serials": [ { "id": 47, ..

Read more

I’m performing a big import with more than 50 excels and some of the excels contain more than 25k rows. The whole process takes about 10/15 minutes to complete. Although the import is done with success it always returns in the end the laravel error 405 Method Not Allowed. I believe this has something to ..

Read more

Does someone know why did i get this error Exception ErrorException thrown: Trying to get property ‘event’ of non-object 1181508: exception ErrorException thrown: Trying to get property ‘event’ of non-object. When i’m trying to send some data to my server ? This is my code : ws.onopen = function(evt) { console.log("connexion ├ętablie") ws.send(‘hello’) }; ws.onmessage ..

Read more

I want to select id with variable count and pass each time new value of count. But it can’t getting the id with count in this way. How’s it is possible. $(document).on(‘click’,’#remove-‘+count,function (){ console.log(count); if(count < 2) { toastr.error(‘Cant Remove this’,’Error’); }else{ let id = $(‘#area-‘+count).data(‘id’); let url = "{{route(‘admin_remove_area’)}}"; let data = { ‘_token’ ..

Read more

I am trying to varify username when new user is entered. and i am trying to use ajax so user can given correct username in the field. form <form role="form"> <input type="hidden" id="token" name="_token" value="{{csrf_token()}}"> <div class="form-row"> <div class="form-group col-md-6"> <label for="firstname">First Name</label> <input type="text" class="form-control" id="firstname" placeholder="First Name"> </div> <div class="form-group col-md-6"> <label for="lastname">Last ..

Read more

Dealing with some legacy code here and my Jquery is a tad rusty. I’ve got duplicated form segments (multiple possible hotel bookings for one guest) and I want to limit the jquery actions to the one form I’m in right now. Current JS Function: $( ‘.hotel-information’ ).on( ‘change’, ‘[name="confirmation-status"]’, function(){ // Reset $( ‘.confirmed-number’ ).addClass( ..

Read more