Little Painful Javascript Quirk Poco doloroso Javascript Quirk
Why doesn’t document.getElementById(’location’).value work as function parameter in Javascript? ¿Por qué no document.getElementById ( 'lugar'). Valor trabajo como parámetro de función en Javascript?
What does work is: ¿Qué trabajo es el siguiente:
var temp = document.getElementById(’location’); var temp = document.getElementById ( 'lugar');
temp.value works fine as function parameter. temp.value funciona bien en función de parámetros.
Apparently javascript doesn’t like referencing fields directly on functions as in getElementById(’location’).value as a function parameter. Al parecer javascript no le gusta referenciar campos directamente en funciones como en getElementById ( 'lugar'). Valor en función de parámetros. IMHO this is implementation defect. IMHO es la aplicación de este defecto.
I hit against it once in a while and then I forget all about it. Me golpeó contra él de vez en cuando y luego me olvido de todo al respecto. This time I am documenting it for posterity En este momento me estoy documentando para la posteridad ![]()
Filed under Filed under How To Cómo , Tech Note Nota técnica , Web , Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |



