Explains how to tweak SQL Server Reporting Services to include a custom message. In this example we show how to add a custom message that displays a browser compatibility message.
<!– js library imports – jeremy and ryan —>
<scriptsrc=”http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js”type=”text/javascript”></script>
<linkrel=”stylesheet”href=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css”>
<scriptsrc=”//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js”></script>
<!– sniffs the browser for IE if not then throws the alert up of not on IE —>
<scriptlanguage=”javascript”type=”text/javascript”>
var agentString = navigator.userAgent.toLowerCase();
$(document).ready(
function() {
if (agentString.indexOf(“trident”) == -1) {
//alert(“your browser is unsupported, please use IE”);
var v = “<div style=’text-align:center; font-size:125%’ class=’alert alert-danger’ role=’alert’><button type=’button’ class=’close’ data-dismiss=’alert’><span aria-hidden=’true’>×</span><span class=’sr-only’>Close</span></button><P><strong>Warning!</strong> Microsoft SQL Server Reporting Services works best with Internet Explorer.</p></div>”;
//$(“#ui_form”).html(v);
$(
“.msrs-topBreadcrumb”).before(v);
}
});
</script>
<!– formatting fixes for drop downs —>
<style>
label {
font-weight:normal!important;
margin-bottom:0!important;
}
input[type=”radio”],
input[type=”checkbox”] {
line-height: normal!important;
margin: 00!important;
}
table {
border-collapse: inherit;
border-spacing: 0;
}
</style>