[Javascript] Is null or not object error

Matt Warden mwarden at gmail.com
Tue Nov 27 12:59:23 CST 2007


On 11/27/07, tedd <tedd at sperling.com> wrote:
> Hi gang:
>
> I would have swore that I did not have this problem before, but
> suddenly it came up for IE's.
>
> Here's the site:
>
> http://webbytedd.com/a/ajax-site
>
> It works fine for non-IE browsers, but IE errors and says my
> document.getElementById(...) is null or not an object.
>
> Here's the code:
>
> http://webbytedd.com/a/ajax-site/js/a.js
>
> Any ideas as to what's wrong?

Actually, I don't think this is a browser-specific issue, per se. I
think it just has to do with different rendering times. Try changing:

window.onload = sndReq('start');

to:

window.onload = function() { sndReq('start'); }

Thanks,

-- 
Matt Warden
Cincinnati, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the Javascript mailing list