Replies: 2 comments 2 replies
-
Hey @ramontvr! 👋 Your form should be sent with the 👇🏼
Route.post('/buscarpordata', 'BuscaPorDController.search').middleware(['auth']) |
Beta Was this translation helpful? Give feedback.
2 replies
-
HTML forms will do page refresh by default. You have to handle it manually if you want to do it in the background with ajax call without page refresh Something like this <form onsubmit="manualHandler">
...inputs
</form>
<script>
function manualHandler(event) {
// It's important to prevent default event, which is "refreshing the page"
event.preventDefault()
// Handle rest of it manually
}
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello all
Im trying to do a request (a query) but the button just refresh the screen.
I cant find the error, i used the same code in another project. I already created another file but no success.
I cant debug with consle.log. its like my button werent working when I press
My View
Im trying to call a controller with this route:
My Controller
Beta Was this translation helpful? Give feedback.
All reactions