All Questions
11 questions
0
votes
2
answers
210
views
Parameter is not sent to Laravel route in Ajax
I'm working with Laravel 5.8 and I wanted to apply a discount code system for my site.
So I tried sending data with Ajax like this:
$.ajax({
type: 'POST',
url: baseurl + 'discount/register',
...
0
votes
2
answers
188
views
Passing data from view to controller using Ajax in Laravel
I am trying to pass two variables to my controller using ajax. There are no errors but the data is null when I get it in the controller.
Web.php
Route::get('/donate/select-card', 'CardController@...
2
votes
2
answers
3k
views
Laravel - 500 (Internal Server Error) on Ajax Call
I've been trying on this tutorial (https://www.youtube.com/watch?time_continue=7&v=D4ny-CboZC0) with respect to my context and I'm getting this error:
POST http://127.0.0.1:8000/transactions/...
1
vote
1
answer
202
views
incorrect ajax url to controller function in Laravel framework
I want a correct ajax URL this one is not working. I am getting this in the console:
GET XHR localhost:8000/Controller/getUnitSellingPrice [HTTP/1.0 404
Not Found 203ms]
create.blade View
C:\...
2
votes
2
answers
3k
views
Auto refresh an another page when new data is added Laravel 5.8 Ajax
I've been searching and trying on how to refresh an another page or blade file when a data is updated. In my case, whenever I click the Call Next button in my call.blade.php, the data would update or ...
1
vote
1
answer
80
views
Need Help Looping Out Content Of Json Data Response Fetched From DB In Using Ajax And Laravel
I have a table with a list of subjects, each subject has its own topics, so I wrote an ajax script to fetch the topics of each subject "onclick" of the subject, using the subject id.
I tried console ...
0
votes
1
answer
924
views
JavaScript AJAX Fetch API and Laravel 5.8 pointing to wrong URL (route)
I was wondering that the AJAX response points to this URL http://www.inwrite.com/turtle/admin/login. I double-checked and didn't change the routes in my web.php file. It took me three days to catch ...
0
votes
1
answer
121
views
Append a dynamic select box to a div after button click
I am trying to append an accordion div after a button click. That works fine. But inside the appended div I have a select box , that has to be dynamically populated. After getting the Json results I ...
0
votes
2
answers
60
views
Result appended twice to table ajax
I am tring to append data to a table. But one of my result is repeating twice. Below is my json response I got.
groupname […]
0 {…}
survey_id 2
group_name DEMO
1 {…}
survey_id 1
...
1
vote
0
answers
194
views
Laravel 5.8 Pure Javascript Fetch AJAX PromiseStatus returns rejected
Currently, I'm having an issue regarding the AJAX response of retrieving an existing customer. When I access the dashboard using the same account in different browsers, for instance: http://www....
0
votes
1
answer
45
views
Dropdown results based on selection from previous dropdown
I need some help to get more values on this dropdown filter.
I got 3 dropdowns, the first give me all "companies", the second, will show all "blocks" of that company, and the last one, will give me ...