开发者

CHROME JS error: "GET http://localhost/loading.gif undefined (undefined)

开发者 https://www.devze.com 2023-02-22 19:26 出处:网络
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 p

I get this开发者_运维百科 error on the Chrome (10.0.648.204) console (see image):

CHROME JS error: "GET http://localhost/loading.gif undefined (undefined)

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?

0

精彩评论

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