On a recent project, I decided to make use of Ajax to make a dynamic Shopping cart. When a user adds to their basket, the basket decends from the top of the screen and displays their contents.

Each item should show a small thumbnail image on each line which it does, for a split second and then they vanish inexplicably!!

Has anyone encountered this issue before?

http://www.arightgoodyarn.com - find some wool and add to basket - the more items, the more apparent the issue is!!!

i can't see what is wrong for sure that is causing this. The source of the image is correct in the source for the page, but inspecting the element shows no source. That would seem like there is some javascript overwriting the img attribute.

There are 2 things I would change though:

1. There is a duplicate call to 2 .js files. I would remove the extra calls:

<script src="scripts/jquery.js" language="javascript" type="text/javascript"></script>
and
<script src="scripts/ajax.js"></script>

2. There is a call to an invalid file path:
<link rel="stylesheet" type="text/css" href="stickytooltip.css" />

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.