All Questions
90 questions
0
votes
1
answer
294
views
How to fill form by clicking search bar dropdown in Laravel?
I have created a search functionality in a component in Laravel which is showing the data from the MySQL database in a dropdown which I implement by using Typeahead Js using this website tutorial.
...
0
votes
0
answers
193
views
I'm trying to get data via axios to send a php server and save as a text file
Hi everyone i want to post data through async and receive it via php
this is my code but it returning empty
async sendMail(email, name) {
try {
const data = new FormData();
data.append('...
0
votes
2
answers
267
views
WordPress - send ajax request from vuejs app
I've created this page template for integrating a vue app into an existing website
<?php
/*
* Template Name: Registration Form
*/
get_header();
?>
<div id="app"></div>
<...
0
votes
1
answer
2k
views
beforeSend in axios
I want to add a loading effect to my project.In jQuery Ajax we have an option called beforeSend and complete for this task.So we show the loading impact on beforeSend and hide it in complete function....
3
votes
1
answer
95
views
Vue-cli project data update delays when sending request with Vuex and axios
I'm working on a project with Vue-CLI, and here's some parts of my code;
//vuex
const member = {
namespaced:true,
state:{
data:[]
},
actions:{
getAll:function(context,...
0
votes
2
answers
595
views
How to debug unwanted 302 redirect from Ajax request?
I'm trying to get data from a database through this ajax request:
axios.get('/about-info')
web.php:
Route::get('/about-info', [CMSController::class, 'aboutInfo']);
CMSController.php:
public function ...
0
votes
0
answers
74
views
Ajax request does not resolve in correct url
I am trying to get data from this url:
axios.get('/join-us-donate')
It SHOULD be sent through web.php:
Route::get('/join-us-donate', [CMSController::class, 'joinUsDonate']);
and run this function ...
0
votes
0
answers
19
views
How to access nested array elements from Axios Response in console? [duplicate]
I am assigning an array from an axios response to the reactive state object. The array is assigned by state.value.headings={...} to the state.headings object, which is an array itself.
This is the ...
2
votes
1
answer
93
views
How to load Axios Response before Vue Component renders?
I want to use:
homePage.image = 'storage/' + 'rkiGXBj7KJSOtsR5jiYTvNOajnzo7MlRAoXOXe3V.jpg'
inside:
<div class="home-image" :style="{'background-image': 'url(' + homePage.image + ')'...
1
vote
1
answer
6k
views
VueJS AXIOS - Is it correct to create an axios instance for every single request?
I've built a VueJS application that uses Vue-Axios to communicate with a Laravel API.
In my project, I have an api.js file that contains the following code:
import axios from "axios";
...
1
vote
0
answers
183
views
How to send an Ajax request in Axios/Vue in a way that is resemble a normal form POST request?
I am using a POST request with Vue and Axios, and want to send in POST parameters in a way that they are intepreted by the Servlet on the serverside, as they were sent from a normal html form. However,...
0
votes
1
answer
379
views
Bootstrap Vue and Axios
Trying to get the HTML from this Axios call to render inside the b-tabs. No luck. It works everywhere but there. Still very new to Vue, and a little stumped as to what I'm missing here. I feel like ...
0
votes
0
answers
2k
views
Vue js select fixed input height
I use this plugin https://www.npmjs.com/package/vue-select to select multiple values from a list.
Let's assume the following:
Vue.component("v-select", VueSelect.VueSelect);
new Vue({
el: "#app"...
0
votes
1
answer
519
views
How to POST formData and another data in axios
If it's just formData, I can send it.
But if you put other data together, formData will be empty.
const formData = new FormData();
formData.append('file', files);
axios.post('/api/upload',...
0
votes
1
answer
598
views
Laravel and vue - VerifyCsrfToken except don't working
I send some POST request by my 'presenze' application with Vue axios to another laravel server 'AUTHSERVER'.
If I set the middleware VerifyCsrfToken.php so:
class VerifyCsrfToken extends Middleware
{ ...