Popup to Display Error Messages
Hi,
I would like to have a popup to display error messages in my app. I would like to write a simple function like:
function error(msg){
...
}
to configure and show the popup.
However it seems like the popup div that to contain the error message has to be placed on each page of the app to make this work. If I just make one popup error div, it is only specific to the page it was placed on.
Is there any way I can create a simple function like this without created a popup error div for each page of my app?