Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
Ajax Jquery is not working in Chrome but it is working IE fine

I am using below code for ajax call .. it is working fine in IE but not working in Chrome it is goes to error function , Please suggest how to fix this

$.ajax({ method: 'POST', crossDomain : true, url: env.url, dataType: 'json', username: env.usrnm, password: env.pwd, headers : { 'Accept' : 'application/json', 'Content-Type' : 'application/json; charset=utf-8' },
data: JSON.stringify(postdata), timeout: envInfo.timeout, success: function(data) {

    var str = "Your request submitted";                     
    alert(str);

    window.top.opener = null;
    window.close(); 
},          
error:function(jqXHR, exception){
            
    if(jqXHR.status != 200 && jqXHR.status != 201){             
    var str ="Your request not submitted";              
    alert(str);

    window.top.opener = null;
    window.close(); 
    }                               
}

}); // End of Ajax Call

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!