My question is why this code is working in all browsers except of IE function. In the other browsers it works.
if (phrases.indexOf(currentPhrase)) phrases.splice(phrases.indexOf(currentPhrase), 1);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My guess is that IE is caching the request (since it’s through
GET). You can fix this in a bunch of ways including cache-control on the server side or usingPOSTinstead. jQuery’s.load()is a bit annoying in that you have to use an object as data to indicate you want aPOSTrequest and use a string forGETinstead of allowing you to set an explicit request.