CHROME JS error: "GET http://localhost/loading.gif undefined (undefined)
I get this开发者_运维百科 error on the Chrome (10.0.648.204) console (see image):
So what I'm doing here is when the user submits the form, an image (preloaded) is inserted in a div (jQuery) and positioned on the button.
The image was preloaded in the HTML but is hidden (display:none).
When the visitor submits the form then the image is inserted AGAIN after the form submit started (so the animated gif dont stop).
Works perfectly in FF and IE, but not in Chrome 10
Any ideas what its happening here?
When I've seen this "undefined" error in Chrome, it's usually because I'm making a request, then canceling it. Usually it's an AJAX request, but I suppose it could be an image too. Is it possible that you're moving the image while it's in the process of loading?
精彩评论