The text is not getting displayed on my modal window. I do see a blank space but when i highlight it with mouse i see the text and when i click anywhere on the screen the text becomes invisible. It works in firefox, IE 6.0 and IE 8.0 but not in IE 7.0. Any suggestion is highly appreciated. Below is the code:
var msg = "This is a test error message";
showError(errormessage);
UTILS.showError = function(error) {
if(error === null || error === undefined) {
return;
}
error = UTILS.Verror(error);
$("#validatorErrorDialog").remove();
$("#errorDialog").remove();
$("#warningDialog").remove();
$('div.confirmation').parent().hide();
var errorClone = $("#validatorErrorDialogHidden").clone();
errorClone.attr("id", "validatorErrorDialog");
var itemError = errorClone.find("ul.items li");
var itemErrorClone = itemError.clone();
var msgs = error.split("\n");
for(var i in msgs) {
if (i == 0) {
itemError.html(msgs[i]);
} else {
itemError.after(itemErrorClone.clone().html(unescape(msgs[i])));
}
}
errorClone.removeClass("hidden");
if (UTILS.showError.arguments.length > 1) {
var modalWindowId = UTILS.showError.arguments[1];
$(".windowBodyBox .clear:eq(2)", modalWindowId).after(errorClone);
} else {
if($('#openedModalId').length > 0 && $('#openedModalId').val() !== '') {
var modalWindowId = $('#openedModalId').val();
errorClone.prependTo($(modalWindowId +" div.line").next());
} else {
var index = $("#pageBodyIndex").val();
if (index === undefined || index < 0 || index =='' || index =='') {
index = 0;
}
errorClone.prependTo("div.pageBlockBody:eq("+index+")");
}
}
// tooltips
$("#validatorErrorDialog").find(".tooltip").tooltip({
track: true,
delay: 0,
fixPNG: true,
opacity: 0.95,
showURL: false
});
};
UTILS.Verror = function(errorMessage) { var patt1=new RegExp("{#[A-Za-z][A-Za-z0-9.:-_]*}", "g"); do { m =patt1.exec(errorMessage); if(m!=null && m!= undefined) { s =''+m; s = s.substring(1,s.length-1); errorMessage=errorMessage.replace(''+m,$(s).val()); } } while(m!=null && m!= undefined) { return errorMessage; } }