Might want to try the .empty() method, on the div containing the
image, before you load in the next one.

http://docs.jquery.com/DOM/Manipulation#empty.28.29

On Jun 4, 4:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm pretty sure it can since jquery is so sweet, but here's what I am
> trying to do:
>
> I have a page (call it generator.cfm) that pulls random pictures from
> a database.
>
> I want a button or link I can click on and have it pull from that url,
> and display in the div or whatever.  pretty simple ajax stuff.
>
> But the tricky part is if I continue to click on the button it doesnt
> replace the existing picture, it just appends on the next picture to
> the list each time the button is clicked.
>
> Any of you guru's care to help me figure this out?

Reply via email to