The command is $.browser.
Possible values:
Possible values:
$.browser.webkit
$.browser.safari
$.browser.opera
$.browser.msie -- IE
$.browser.mozilla
Sample code
<script type="text/javascript">
function ValidateSelect() {
var brow = $.browser;
var lblMessage = $('#<%=lblCloseAuctionValidation.ClientID%>');
var message = '<%=CloseAuctionMessage%>';
var IsExit = false;
$('#ThirdpartyAuctionDiv input:radio:checked').each(function() {
var value = $(this).val();
if (value == 'AWAITINGDECISION') {
IsExit = true;
}
});
if (IsExit == false) {
lblMessage.text('');
var confirmMessage = '<%=ConfirmationMessage %>';
if (confirm(confirmMessage) == false) {
if (brow.msie == true) {
event.returnValue = false;
}
return false;
}
}
else {
lblMessage.text(message);
if (brow.msie == true) {
event.returnValue = false;
}
return false;
}
}
</script>
No comments:
Post a Comment