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

108
Views
HCL Notes 11 - Javascript - context.text no funciona en Firefox pero funciona en IE

El siguiente código funciona en IE pero no en otros navegadores.

 var node = xmlHttp.responseXML.documentElement; var eitems = node.getElementsByTagName("nib:ProcessRequestResponse"); txt = eitems.context.text; txt2 = txt.replace("\n", "");

Da el error "eitems.context no está definido". También probé eitems.context.textContent , eitems.context.innertext , eitems.context.innerHTML . Todo da el mismo error.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

getElementsByTagName() devuelve una HTMLCollection. Accede al primer elemento con

 var item = eitems.item(0);

o solo

 var item = eitems[0];

Utilice item para obtener el contenido.

about 4 years ago · Juan Pablo Isaza Report

0

txt = node.textContent para obtener el contenido de la etiqueta y funcionó

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