[jQuery] using html() I get a non-secure error message in IE

[jQuery] using html() I get a non-secure error message in IE


I do not know Javascript or Jquery very well, but by process of
elimination I have determined this script(not written by me) is the
cause of the non-secure error message in IE on a shopping cart
checkout page.
<script type="text/javascript" charset="utf-8">
        elm = $('#display_cart_summary')
        elm.html(elm.html().replace('shopping cart', 'doggie bag'));
        elm = $('#content_area')
        elm.html(elm.html().replace('shopping cart', 'doggie bag'));
        elm = $('#font_checkout_cart')
        elm.html(elm.html().replace('in cart', 'in doggie bag'));
        elm = $('#content_area')
        elm.html(elm.html().replace('Entire Cart', 'Entire Doggie Bag'));
</script>
It works OK , if I remove the last two lines(not going to content_area
twice). But if I am on the page and hit refresh, it still gets the
error message even with these lines removed.
Is there a way to work around this? It isn't very reassuring to
customers to get a security error note when they go to checkout.
Thanks.




















    • Topic Participants

    • info