Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: XMLHttpRequest and Google Chrome Date: Mon, 13 Apr 2015 15:50:25 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87h9skyte6.fsf@bsb.me.uk> References: <130420151317399772%timstreater@greenbee.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="19534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9e6oaBNVDIkYC8E0sTUSsxTPD+2/yiZc=" Cancel-Lock: sha1:wn6ym3yPKD8nkt0U1XAN/B9DMHQ= sha1:IGEHXwbZOK/VdaN3GCQkqBg07ac= X-BSB-Auth: 1.f2313a28ef6f3be8119a.20150413155025BST.87h9skyte6.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27350 Robbie Brown writes: > there is a common header that is included with every page > > in the of the common header I have this > > This looks wrong. Did you mean 'window.onload=getCart'? The async HTTP handler will run when there is no guarantee that the element it will modify is present yet. -- Ben.