开发者

results are appended into iframe every invocation

开发者 https://www.devze.com 2022-12-21 00:45 出处:网络
I have an iframe that displays thumbnail images from Flickr in my web application. The problem, I see is when I reload the page, sometimes, I see the same set of images being appended to the earlier s

I have an iframe that displays thumbnail images from Flickr in my web application. The problem, I see is when I reload the page, sometimes, I see the same set of images being appended to the earlier set of images. So I get two sets of every image and on a subsequent reload, I get 3 sets of images.

The images are part of a form. So I see multiple submit a开发者_如何学Pythonnd cancel buttons as well. Any suggestions on what might be causing this and how I can avoid this from happening?


Pardon my ignorance. I was not resetting my server side variable after the fetch and hence I was seeing the above weirdness. Firebug helped me debug this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号