Lasse A Karlsen
Lasse A Karlsen

Reputation: 821

jQuery: ajax call not received by IE

I have this simple ajax call. It works fine in firefox/chrome, returning number of messages sent in a chat enviroment without response. In IE however, the alert is called but only returns 0. If I set cache to false, it returns 1..

What might cause this? Is there any known issues regarding this operation in IE using jQuery?

Upvotes: 1

Views: 221

Answers (2)

Cole
Cole

Reputation: 740

do you have function foobar() {

}

or

function foobar {

}

pretty sure you need the ()

Upvotes: 0

rahul
rahul

Reputation: 187030

IE will be taking the result from the cache. Since your request URL has not been changed IE interprets it to be the same request and will not fetch data from server.

You can set the cache property to false during the ajax request.

Read more jQuery.ajax( settings )

Upvotes: 1

Related Questions