Answer the question
In order to leave comments, you need to log in
Why, if adblock is installed in firefox, the script is not executed?
Hello, such a problem, if the adblock add-on is enabled in firefox (even if the site is whitelisted), then part of my script is simply not executed, but it’s worth turning off the add-on and everything works fine. In chrome with the same add-ons everything works fine. What could be the problem?
Gives such an error
TypeError: name is undefined
in this variable I store data from JSON.
Which I receive in advance in this way
$.get({
url: "***.json",
dataType: "json",
success: function(data) {
name = data;
}
});
$(document).ready( function(){
name[***][***][***][***][***]
Answer the question
In order to leave comments, you need to log in
Check if the request is running. If it says that name is undefined, then your success in ajax is not performed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question