One thing you find very quickly when scripting in IE is that its error messages are roughly as useful as a television when you have no electricity. It's extremely rare in my experience for IE's error messages to actually indicate the actual problem.
So for that reason it would be better if you showed us the code.