Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

131
Vistas
Sending Array in Ajax request

Anybody here understand who understands more Ajax. I'm not sure how to send a javascript array in an ajax request. Could someone send me an example of how the ajax request would look? I'm trying to to grab all the javascript data, bundle it into a container and send it per ajax request to coldfusion but I don't understand much ajax so everything would help me.

Thank you for all the answers.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Example using axios library to send array of data in ajax request.

import axios from "axios"
async function sendJavascriptArrayData() {
  const postRequestData = {
    arrayOfStrings: ["react", "svelte", "solidjs"],
    arrayOfNumbers: [1, 2, 3],
  }

  try {
    const res = await axios.post("https://example.com", postRequestData)
    console.log(res.data)

  } catch (error) {
    console.log(error.response)
  }
}
about 4 years ago · Juan Pablo Isaza Denunciar

0

to send an array javascript through a request you can stringify it ( transform it into plain text) via the JSON.stringify(array) and send it.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda