[EMAIL PROTECTED] wrote:
I take it these validation messages are inserted in the 'messages' tile ?



care to contribute ? I could create a new namespace property that would enable 
this feature .. that way you don't need to customize, and I think the feature 
is interesting
(end of quote)




As you will see below, I copy the window.alert function pointer to the variable 
'modalAlert' (just to use in some occasional debugging need), and set the 
window.alert variable to a new function pointer (localAlert), which does the 
trick of inserting the string parameter (msg) inside the DIV and showing the 
DIV calling openErrorMessages.



//ajuste do alert

function openErrorMessages(id){

   obj = document.getElementById(id);

   center(obj);

   obj.style.visibility = "visible";

   obj.style.display="";

}





modalAlert = window.alert;

function localAlert(msg){

   objDest=document.getElementById("errorMessagesLocation");

   if(objDest == null)

     modalAlert(msg);

   else{

     objDest.innerHTML = msg;

     openErrorMessages("error_messages");

   }

}

window.alert = localAlert;

//=====


_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3484#3484
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to