Copy link to clipboard
Copied
Using jquery to pull CSS works fine in all other borwsers except IE9 page wont refresh?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
thanks for you help fixed the issue