javascript - if get 0 then Synchronous XMLHttpRequest on the main thread is deprecated if higher then 0 is work -


i using ajax code append result database, case if use idc = 0 in url code give error in console:

this url

product?idc=0&_=1453888198332

synchronous xmlhttprequest on main thread deprecated because of detrimental effects end user's experience. 

but if higer 0 1,2,3,4,...etc code work data or no data.

this ajax, code working because use in other project. in test not.

var data={idc:idc};             $.ajax({                 type:"get",                 datatype:"html",                 url:"",                 data:data,                 cache:false,                 success: function(data) {                                $('#subcategory').append(data);                 } 

how fix this?

thank you


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -