Little Painful Javascript Quirk

    Date: 05/14/06 (Java Web)    Keywords: java

    Why doesn’t document.getElementById(’location’).value work as function parameter in Javascript? What does work is: var temp = document.getElementById(’location’); temp.value works fine as function parameter. Apparently javascript doesn’t like referencing fields directly on functions as in getElementById(’location’).value as a function parameter. IMHO this is implementation defect. I hit against it once in a while and then I forget all about it. This [...]

    Source: http://blog.taragana.com/index.php/archive/little-painful-javascript-quirk/

« How To Enable window.status... || Rights of HIV+ Children? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home