What you mean dude?

|
Manojkumar5408 2020-12-05 20:44:03
Noufal Kollakkad 2020-12-05 20:10:30
Hello student management system

What you mean dude ?

2020-12-05 20:49:25
laravel_discuss-61417.jpg
Please help me, Ajax form submission is throwing errors in laravel 8
2020-12-05 20:50:29
laravel_discuss-61418.jpg
My ajax request
2020-12-05 20:51:05
laravel_discuss-61419.jpg
Route
2020-12-05 20:51:46
laravel_discuss-61420.jpg
Controller method
DesolatorMagno 2020-12-05 20:51:50
Are you sure the prevent default is working?
2020-12-05 20:52:25
Yeah
DesolatorMagno 2020-12-05 20:52:55
Change the method in the form and you will see.
DesolatorMagno 2020-12-05 20:53:17
2020-12-05 20:49:25
Please help me, Ajax form submission is throwing errors in laravel 8

Just looking here the URL I can see that is not a ajax problem

DesolatorMagno 2020-12-05 20:53:42
And besides, ajax would not give that error full screen.
2020-12-05 20:55:38
Still it’s not working
2020-12-05 20:56:16
I’m using post method every where why get
DesolatorMagno 2020-12-05 20:57:56
Dunno, but the form is being send using get method, that is the error.
DesolatorMagno 2020-12-05 20:58:06
Not ajax or controller.
2020-12-05 20:59:16
laravel_discuss-61430.jpg
This is my form
2020-12-05 21:00:26
Just I changed post to get Method to test
2020-12-05 21:00:27
You’re not clicking right button id
2020-12-05 21:00:49
Also you don’t need Action or method option in form when you’re using Ajax
2020-12-05 21:01:27
2020-12-05 21:00:49
Also you don’t need Action or method option in form when you’re using Ajax

Yeah I tried it in before changing

2020-12-05 21:01:38
Without action
2020-12-05 21:01:47
Click right button id
DesolatorMagno 2020-12-05 21:01:54
If you don’t put it doesn’t mean it doesn’t have, it just get the default, get
DesolatorMagno 2020-12-05 21:02:19
The problem is that the form is being send and you are not stoping the event
2020-12-05 21:02:25
And put console.log to see if it worked.
DesolatorMagno 2020-12-05 21:02:45
Just change the type of button to button.
2020-12-05 21:02:50
2020-12-05 21:01:47
Click right button id

I didn’t get

2020-12-05 21:03:25
Yeah
DesolatorMagno 2020-12-05 21:03:30
(well in reality there are a couple more of errors)
2020-12-05 21:03:35
On your code your saying $(‘#contact_form’).click
javedkhansh 2020-12-05 21:03:43
What is the best and easy way to learn and expert un laravel.
2020-12-05 21:03:52
I got
2020-12-05 21:03:58
But your button id is #form_button
Caren 2020-12-05 21:05:19
Hello friends, anyone knows about the product filter algorithm
DesolatorMagno 2020-12-05 21:05:20
javedkhansh 2020-12-05 21:03:43
What is the best and easy way to learn and expert un laravel.

You study for 15 years, them you invent a time machine, you go back to the past (today) you change body with your actual and younger self.

2020-12-05 21:05:36
Also you need to set headers for csrf token, please read docs.
|