Message Font: Serif | Sans-Serif
No. of Recommendations: 0
Well, I got it fixed.

I was having a completely unrelated problem that I finally narrowed down to this same GetElementById issue. In this 2nd case, I was trying to get the status of a checkbox (using vbscript). Part of the statement was: "document.getElementById.ckbxABC.checked". This generated the same kind of error.

The fix for all of this that I stumbled across was to replace "GetElementById" with "all". So "document.getElementById[fldID].focus" became "document.all[fldID].focus". And, "document.getElementById.ckbxABC.checked" became "document.all.ckbxABC.checked". When coded this way, everything works just fine.

I can't explain it - but it works so I'm going to go with it.

BTW, dsbrady, this is all part of an in-house setup that is not available for access over the internet.
Print the post  


When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and Glassdoor #1 Company to Work For 2015! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.