Skip to main content
Participant
Mar 8, 2013 4:40 PM UTC
Question

Refreshing in IE9

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

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    hook_emAuthor
    Participant
    Mar 8, 2013 9:04 PM UTC

    thanks for you help fixed the issue

    Translate
    hook_emAuthor
    Participant
    Mar 8, 2013 7:01 PM UTC

    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>

    Translate
    Inspiring
    Mar 8, 2013 7:17 PM UTC

    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>

    Translate
    Inspiring
    Mar 8, 2013 6:25 PM UTC

    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?

    Translate