I am setting the hardcoded messages for Ex: "Are you sure, you want to delete the message?" ,in the message.properties file.
Want to take this messages from the message.properties into javascript. Please suggest me ways to achive this.
For ex:
BootstrapDialog.show({
message: 'Are you sure you want to '+activeStatus+' this message ?',
title: 'Alert'
});
function handleAjaxError(xhr, textStatus, error) {
if (textStatus == 'timeout') {
alert('The server took too long to send the data.');
} else if (textStatus == "parsererror") {
alert("Ajax error occured.");
}
}