ID's and Functions having the same name causes an error
If you ever run into this error,
Error: Object doesn't support this property or method
You may have a tag ID that's the same as the function name. I'm not sure what the case is that causes the error, but I had a function name, say update_me() and an input button that I was trying to modify that had the same ID name as the function.
function update_me()
{
document.getElementById('update_me')
}
The button looked partially like .
I've left out the details, but the moral of the story is don't name any function the same as any ID attribute.
Even objects cannot have the same name as the "id" of an element. I prefix all of my objects with o_.
[Click to add or edit comments])
Please prepend comments below including a date