Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

306
Views
Llamada AJAX: JQuery está bien, pero Vue y Vanilla JS no ejecutan el script dentro del elemento

Me gustaría ejecutar un código dentro de un elemento html después de una solicitud xhr

Solía usar JQUERY $(el).html(data) y funcionó bien

Ahora tratando de deshacerse de jquery

Probé tanto Vanilla JS innerHTML como vue3 v-html pero el script nunca se ejecuta

Puedo verlo en html

ingrese la descripción de la imagen aquí

Aquí está el código:

 axios.get('/getAarea/blog') .then(response => { const data = response.data; if (!data.report) { const el = $("#ContentUserPanel") el.html(data) this.loading = false this.selected = this.types.blogs this.toggleUserMobileMenu() } else { Error('There was an error ',data.report) this.loading = false this.selected = null } }) .catch(err => { Error('There was an error ',err) this.loading = false this.selected = null });

¿Alguien podría explicar?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!