0

For some reason, all IE browsers are not executing $get correctly like in other browsers, in other browsers it makes the call and goes throught the conditional statemente I have within the function (data). Anyone see what might be going wrong? Thanks! No error occurs it just doesn't go through it.

HTML

 <a href="layer_register.html" class="game-reg-button"> </a>

JQUERY

 $(document).on('click', '.game-reg-button', function(e){
            e.preventDefault();
            var href = $(this).attr('href');
            emailaddress = $('#game-email').val();

var getstate ="";
var data;

     $.get('promo_getstate.php', {
            email: emailaddress,
            country: 'DE',
            lang: lang,
            source: '1304_Spring_dly'
        }, function (data) {

            getstate = data;


        if( !isValidEmailAddress( emailaddress ) ) {
          $('p.start.error').fadeIn(300); 

.....................................................



}); /*end .GET */
    });
user1937021
  • 10,151
  • 22
  • 81
  • 143

1 Answers1

0

IE is famous for caching. Make sure that you are not receiving a cached result.

Append a unique timestamp at the end of your url and it will not be a cached result then. you can use jQuery now function.

 $.get('promo_getstate.php?'+$.now)(, {
    // your code goes here
 }); 
Shyju
  • 214,206
  • 104
  • 411
  • 497