Skip to main content
Participant
March 8, 2013
Question

Refreshing in IE9

  • March 8, 2013
  • 3 replies
  • 688 views

Using jquery to pull CSS works fine in all other borwsers except IE9 page wont refresh?

    This topic has been closed for replies.

    3 replies

    hook_emAuthor
    Participant
    March 8, 2013

    thanks for you help fixed the issue

    hook_emAuthor
    Participant
    March 8, 2013

    Using an ajax request to pull the file

    <script type="text/javascript">


    function contract(vendor_number) {
    $.ajax({
       type: "GET",
       url: "/cfc/Booth.cfc?method=contractExists&returnformat=json",
       data: {market_code: 114 ,
           vendor_number: vendor_number
           },
       dataType: "json",
       success: function(data){
        /*alert('Contract Data');*/
       /* console.log( data['DATA']);*/
        if (typeof data['DATA'] !== 'undefined' && data['DATA'].length > 0){
         /* contract on file */
         //url for booth link
         $('#boothURL').attr('href','/vendor/online_market_reg/booth_contract_BS.cfm?<cfoutput>#SESSION.URLToken#</cfoutput>&v='+vendor_number );
         $('#boothProgressBar').removeClass().addClass('progress progress-warning');
         $('#boothBar').empty();
         $('#boothBar').text('Submitted Pending Approval')
        } else {
         /* no contract on file */
         $('#boothProgressBar').removeClass().addClass('progress progress-danger');
         $('#boothBar').empty();
         $('#boothBar').text('Not Complete')
         $('#boothURL').attr('href','/vendor/online_market_reg/booth_contract_BS.cfm?<cfoutput>#SESSION.URLToken#</cfoutput>&v='+vendor_number );
        }   
       },
       error: function(data){
        alert('error getting contract status');
       }
      });
      return false

    }

    </script>

    Inspiring
    March 8, 2013

    please add "cache:false" attribute to the call

    <script type="text/javascript">


    function contract(vendor_number) {
    $.ajax({
       type: "GET",
       url: "/cfc/Booth.cfc?method=contractExists&returnformat=json",
       data: {market_code: 114 ,
           vendor_number: vendor_number
           },

        cache:false,
       dataType: "json",
       success: function(data){
        /*alert('Contract Data');*/
       /* console.log( data['DATA']);*/
        if (typeof data['DATA'] !== 'undefined' && data['DATA'].length > 0){
         /* contract on file */
         //url for booth link
         $('#boothURL').attr('href','/vendor/online_market_reg/booth_contract_ BS.cfm?<cfoutput>#SESSION.URLToken#</cfoutput>&v='+vendor_number );
         $('#boothProgressBar').removeClass().addClass('progress progress-warning');
         $('#boothBar').empty();
         $('#boothBar').text('Submitted Pending Approval')
        } else {
         /* no contract on file */
         $('#boothProgressBar').removeClass().addClass('progress progress-danger');
         $('#boothBar').empty();
         $('#boothBar').text('Not Complete')
         $('#boothURL').attr('href','/vendor/online_market_reg/booth_contract_ BS.cfm?<cfoutput>#SESSION.URLToken#</cfoutput>&v='+vendor_number );
        }   
       },
       error: function(data){
        alert('error getting contract status');
       }
      });
      return false

    }

    </script>

    Inspiring
    March 8, 2013

    Hi there,

    Can you please explain your problem. Is your css file is loaded to the browser of you are using ajax request for pulling css file?