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

108
Vistas
iframe - cant set data to a iframe textfield

iam using a form in my vue js app.And the form is from my main website, so that i am including the same form using

"vue-friendly-iframe": "^0.20.0",

for that i added

<vue-friendly-iframe src="url" @load="afterLoad()" id="formFrame"></vue-friendly-iframe>

and the url replaces my original form url.The form is loading perfectly.

so next i want to add my logged in user id to the form's hidden user if textfield after page load. so i added

@load="afterLoad()"

and

afterLoad(){
            console.log("setting user token");
            var formFrame=document.getElementById("formFrame");
            if(formFrame)
                formFrame.document.getElementById("accessories-form").user_id.value = this.$token;
        }

But i couldnt set the user id.How can i do that.Thanks in advance

And my vue js app is hosted in subdomain whereas actual forms are hosted in the primary domain

about 4 years ago · Juan Pablo Isaza
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