i have a script in jquery and when it is initialized, in console appear "GET http://localhost/0", everything working perfectly but in console i have 4 get request error. I use jQuery.ajax
for init the script.
Screen
Sometimes there are fewer
It is as if your AJAX request was trying to load some resource from your local machine, and it could not (e.g. a file is not present, or local HTTP server is not serving Web pages for some reason). Try and figure out WHAT is being requested by that AJAX request. No way to be more specific without seeing the code.
Problem is that Dojo will create request: GET http://localhost/0
This question is not a complete question at all.
If you just want that error to be gone, and your code works perfectly as you say.
Then just create a blank file named "0
" at the root folder of your site.
Next time your ajax should find that file and stop showing you 404 error. 404 error is shown when you request something from server and server can not resolve the URI mostly because of missing file.
Alternately, We could tweak your ajax code, if you had posted it. I recommend posting it for better answer.
You have to include properly your jquery script.
Here it is how to do it:
http://www.w3schools.com/jquery/jquery_get_started.asp
Second, page you are trying to get with your ajax call is maybe blank or does not exist - check that and you will find where is your problem.
As websky suggested, it might be a bug in Dojo.
You have to clear browser cache as follows:
Right click Inspect, go to Network tab.
Find the broken link under Name (in red).
Right click, 'clear browser cache' and refresh Chrome.