Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27347
| From | Robbie Brown <rob@example.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: XMLHttpRequest and Google Chrome |
| Date | 2015-04-13 13:34 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mggd3o$n6r$1@dont-email.me> (permalink) |
| References | <mgedt0$ki9$1@dont-email.me> <mgg2bc$1olt$1@adenine.netfront.net> <mgg70i$19a$1@dont-email.me> <130420151317399772%timstreater@greenbee.net> |
On 13/04/15 13:17, Tim Streater wrote:
> In article <mgg70i$19a$1@dont-email.me>, Robbie Brown <rob@example.com>
> wrote:
>
>> function updateCart(cartXML) {
>> var cartsnapshot = document.getElementById("cartsnapshot");
>> cartsnapshot.innerHTML = getCartSnapshot(cartXML);
>> }
>
> Where is the element cartsnapshot defined? Show us its html. ISTM that
> there is no such element, in which case
> document.getElementById("cartsnapshot") will return null. Or you are
> running this javascript before the element is loaded.
>
Jeez, It's like herding cats sometimes.
I have mentioned repeatedly that this code only causes problems in
Chrome, it works fine in other browsers
anyway, here's the html
<div id="rightcolumn" ondrop="dropOnList(event)"
ondragover="allowListDrop(event)">
<!-- cart -->
<div class="strbox">
<div class="top">
<img src="/static/cart.gif" alt='cart' title='cart'> Shopping Cart
</div>
<div class="middle">
<img src="/static/ukccheader.jpg" width='160' alt='Pay securely'
title='Pay securely'>
<div id="cartsnapshot">
<!-- if the cart doesn't appear here provide a button to allow a refresh -->
<div style="margin-top:7px; margin-bottom: 7px; overflow:hidden;
text-align:center">
<div style="font-size: 0.9em; font-weight:bold;">
Network congestion
</div>
<div style="margin-top: 7px;">
<input type='button' value="Refresh cart"
style="font-weight: bold;" onclick='getCart()'>
</div>
</div>
</div>
</div>
</div>
there is a common header that is included with every page
in the <head> of the common header I have this
<script type="text/javascript">
window.onload=getCart();
</script>
Once again, this is only a problem in some versions of Chrome.
--
Not floundering ... just fishing
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-12 19:36 +0100
Re: XMLHttpRequest and Google Chrome JJ <jj4public@vfemail.net> - 2015-04-13 12:33 +0700
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 07:41 +0100
Re: XMLHttpRequest and Google Chrome Martin Honnen <mahotrash@yahoo.de> - 2015-04-13 11:30 +0200
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 11:50 +0100
Re: XMLHttpRequest and Google Chrome Tim Streater <timstreater@greenbee.net> - 2015-04-13 13:17 +0100
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 13:34 +0100
Re: XMLHttpRequest and Google Chrome Tim Streater <timstreater@greenbee.net> - 2015-04-13 14:26 +0100
Re: XMLHttpRequest and Google Chrome Martin Honnen <mahotrash@yahoo.de> - 2015-04-13 16:15 +0200
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 16:03 +0100
Re: XMLHttpRequest and Google Chrome Martin Honnen <mahotrash@yahoo.de> - 2015-04-13 19:26 +0200
Re: XMLHttpRequest and Google Chrome "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-13 20:23 +0200
Re: XMLHttpRequest and Google Chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-13 15:50 +0100
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 16:10 +0100
Re: XMLHttpRequest and Google Chrome "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-13 17:46 +0200
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 17:28 +0100
Re: XMLHttpRequest and Google Chrome "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-13 19:14 +0200
Re: XMLHttpRequest and Google Chrome Tim Streater <timstreater@greenbee.net> - 2015-04-13 18:29 +0100
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 18:59 +0100
Re: XMLHttpRequest and Google Chrome "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-13 20:29 +0200
Re: XMLHttpRequest and Google Chrome Tim Streater <timstreater@greenbee.net> - 2015-04-13 19:34 +0100
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 20:11 +0100
Re: XMLHttpRequest and Google Chrome "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-04-13 20:44 +0200
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 20:21 +0100
Re: XMLHttpRequest and Google Chrome Denis McMahon <denismfmcmahon@gmail.com> - 2015-04-14 12:43 +0000
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-14 14:50 +0100
Re: XMLHttpRequest and Google Chrome Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-14 22:51 +0200
Re: XMLHttpRequest and Google Chrome Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-13 22:28 +0200
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-13 19:23 +0100
Re: XMLHttpRequest and Google Chrome Tim Streater <timstreater@greenbee.net> - 2015-04-13 19:38 +0100
Re: XMLHttpRequest and Google Chrome "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-04-13 17:36 -0430
Re: XMLHttpRequest and Google Chrome Robbie Brown <rob@example.com> - 2015-04-14 11:35 +0100
Re: XMLHttpRequest and Google Chrome Denis McMahon <denismfmcmahon@gmail.com> - 2015-04-14 11:37 +0000
csiph-web