While calling ajax getting “ [Deprecation] ” on my browser console
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am making an ajax call and it is implementing successfully and loading my data. On my browser console I am getting Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
Code
$("#formIdoutletwisetable").submit(function(event) {
event.preventDefault();
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "POST",
data : {
Outlet : currentlyClickedOutlet,
},
});
$.ajax({
async: true,
url : "NoData",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("firstdata",data.length);
if(data.length>1)
{
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("tst",data);
$("#formIdoutletwisetable").hide();
let formatedData = formatData(data);
renderTable(formatedData);
}
});
}
else
{
alert('No data found between dates');
window.location = 'Somelocation.html';
}
}
});
});
i have added the full code of my one of report that makes the ajax call.
Am I doing anything wrong even if I don't have great knowledge about [Deprecation]
? Is it harmful for my application?
i am using unminified jquery and after that on clicking on the link on right of console i am getting this as shown in image
javascript ajax
add a comment |
I am making an ajax call and it is implementing successfully and loading my data. On my browser console I am getting Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
Code
$("#formIdoutletwisetable").submit(function(event) {
event.preventDefault();
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "POST",
data : {
Outlet : currentlyClickedOutlet,
},
});
$.ajax({
async: true,
url : "NoData",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("firstdata",data.length);
if(data.length>1)
{
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("tst",data);
$("#formIdoutletwisetable").hide();
let formatedData = formatData(data);
renderTable(formatedData);
}
});
}
else
{
alert('No data found between dates');
window.location = 'Somelocation.html';
}
}
});
});
i have added the full code of my one of report that makes the ajax call.
Am I doing anything wrong even if I don't have great knowledge about [Deprecation]
? Is it harmful for my application?
i am using unminified jquery and after that on clicking on the link on right of console i am getting this as shown in image
javascript ajax
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
1
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29
add a comment |
I am making an ajax call and it is implementing successfully and loading my data. On my browser console I am getting Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
Code
$("#formIdoutletwisetable").submit(function(event) {
event.preventDefault();
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "POST",
data : {
Outlet : currentlyClickedOutlet,
},
});
$.ajax({
async: true,
url : "NoData",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("firstdata",data.length);
if(data.length>1)
{
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("tst",data);
$("#formIdoutletwisetable").hide();
let formatedData = formatData(data);
renderTable(formatedData);
}
});
}
else
{
alert('No data found between dates');
window.location = 'Somelocation.html';
}
}
});
});
i have added the full code of my one of report that makes the ajax call.
Am I doing anything wrong even if I don't have great knowledge about [Deprecation]
? Is it harmful for my application?
i am using unminified jquery and after that on clicking on the link on right of console i am getting this as shown in image
javascript ajax
I am making an ajax call and it is implementing successfully and loading my data. On my browser console I am getting Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
Code
$("#formIdoutletwisetable").submit(function(event) {
event.preventDefault();
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "POST",
data : {
Outlet : currentlyClickedOutlet,
},
});
$.ajax({
async: true,
url : "NoData",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("firstdata",data.length);
if(data.length>1)
{
$.ajax({
async: true,
url : "DateWiseOlWiseSales",
method : "GET",
dataType : "json",
contentType: "application/json; charset=utf-8",
data : {
fromdate : $("#startdate").val(),
},
success : function(data) {
// console.log("tst",data);
$("#formIdoutletwisetable").hide();
let formatedData = formatData(data);
renderTable(formatedData);
}
});
}
else
{
alert('No data found between dates');
window.location = 'Somelocation.html';
}
}
});
});
i have added the full code of my one of report that makes the ajax call.
Am I doing anything wrong even if I don't have great knowledge about [Deprecation]
? Is it harmful for my application?
i am using unminified jquery and after that on clicking on the link on right of console i am getting this as shown in image
javascript ajax
javascript ajax
edited Jan 3 at 7:40
asked Jan 3 at 5:33
user10561216
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
1
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29
add a comment |
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
1
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
1
1
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29
add a comment |
1 Answer
1
active
oldest
votes
Did you included a script tag as part of the content that was being returned. Like :
<html>
<head></head>
<body></body>
</html>
<script src="script path"></script>
You can use jQuery's getScript() to get scripts content instead of used like above code. please find below sample code
<script type="text/javascript">
var script_path = "js script path";
$.getScript(script_path);
</script>
Also you can check here You can check example here
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016827%2fwhile-calling-ajax-getting-deprecation-on-my-browser-console%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Did you included a script tag as part of the content that was being returned. Like :
<html>
<head></head>
<body></body>
</html>
<script src="script path"></script>
You can use jQuery's getScript() to get scripts content instead of used like above code. please find below sample code
<script type="text/javascript">
var script_path = "js script path";
$.getScript(script_path);
</script>
Also you can check here You can check example here
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
add a comment |
Did you included a script tag as part of the content that was being returned. Like :
<html>
<head></head>
<body></body>
</html>
<script src="script path"></script>
You can use jQuery's getScript() to get scripts content instead of used like above code. please find below sample code
<script type="text/javascript">
var script_path = "js script path";
$.getScript(script_path);
</script>
Also you can check here You can check example here
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
add a comment |
Did you included a script tag as part of the content that was being returned. Like :
<html>
<head></head>
<body></body>
</html>
<script src="script path"></script>
You can use jQuery's getScript() to get scripts content instead of used like above code. please find below sample code
<script type="text/javascript">
var script_path = "js script path";
$.getScript(script_path);
</script>
Also you can check here You can check example here
Did you included a script tag as part of the content that was being returned. Like :
<html>
<head></head>
<body></body>
</html>
<script src="script path"></script>
You can use jQuery's getScript() to get scripts content instead of used like above code. please find below sample code
<script type="text/javascript">
var script_path = "js script path";
$.getScript(script_path);
</script>
Also you can check here You can check example here
edited Jan 3 at 6:35
answered Jan 3 at 6:32
Manoj PatelManoj Patel
17319
17319
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
add a comment |
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
I don't see what this has to do with the above question? Did you intend to post this as an answer to another question?
– Phil
Jan 3 at 6:35
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
yupp this is from the post you guyz have suggested me
– user10561216
Jan 3 at 6:36
1
1
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
Actually when we get the html content through ajax call and included js scripts in that html we have get deprecation errors in console so to resolved that we just have to use jquery function $.getScript(script_path);
– Manoj Patel
Jan 3 at 6:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54016827%2fwhile-calling-ajax-getting-deprecation-on-my-browser-console%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As mentioned in stackoverflow.com/questions/24639335/… add ` async: true` in your ajax request.
– Vasyl Moskalov
Jan 3 at 5:38
1
Possible duplicate of JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
– Vasyl Moskalov
Jan 3 at 5:38
@VasylMoskalov i have done that but getting same error on my browser console
– user10561216
Jan 3 at 5:55
Could you check is this request produces warning?
– Vasyl Moskalov
Jan 3 at 6:02
Let us continue this discussion in chat.
– user10561216
Jan 3 at 7:29