Brunno Vodola Martins
Brunno Vodola Martins

Reputation: 1692

Jquery POST method doesn't work on IE8

My Jquery (version: 1.8.1) code:

$(document).ready(function() {  
    $('#Vehicle-make').change(function() {
        $.post(
            '/cakeMotors/ModelNames/viewList/' ,
            { make_id : $('#Vehicle-make').val() } ,
            function(data) {
                $('#Vehicle-model').html(data); 
            }   
        );
    });
});

What could it be?

Upvotes: 0

Views: 1132

Answers (1)

unarity
unarity

Reputation: 2445

IE is caching ajax urls. Try to put at the end of url parameter of time ticks (new Date).getTime()

This will prevene IE to cache result.

And yes, this is shot in the dark :)

Upvotes: 1

Related Questions