I'm creating an app using phpdevshell (which uses latest jQuery).
Now without any reason visible to me, jQuery started requesting an url ending with "undefined" which doesn't exist and causes 404.
It looks for this url: http://localhost/mysite/undefined
I've located the part of jQuery that does this (starting at line 7866):
// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( s.hasContent && s.data ) || null );
Any idea why this happens? Thanks.
It looks like you're building an url with a variable that returns undefined. Ie: var url = " http://localhost/mysite/" + variable; where variable is undefined.
Try puting return false at the end of your function. May be it is propagating for another event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With