Hi,
When the clear button is selected in IE7 browser for the date widgets (in edit metadata window), the following window is always generated.
That is until you select the ‘Check’ button. Firefox has no issue with this, just IE7. Appears IE has a problem with this javascript.
“
var Checks = {
message : “If you press OK you will LOSE any changes you’ve made to the metadata!”,
_setMessage : function(str)
{
this.message = str;
},
_onbeforeunload : function(e)
{
editRed = opener.document.getElementsByClassName(‘editing’);
if (editRed && editRed != ‘’ && this.message != null)
{
editRed.first().removeClassName(‘editing’);
}
e.returnValue = this.message;
}
};
function unloadMess()
{
mess = “If you press OK you will LOSE any changes you’ve made to the metadata!”;
return mess;
}
var bfu = Checks._onbeforeunload.bindAsEventListener(Checks);
function setBunload(on)
{
if (on)
{
Event.observe(window, ‘beforeunload’, bfu);
Checks._setMessage(unloadMess());
} else {
Event.stopObserving(window, ‘beforeunload’, bfu);
Checks._setMessage(null);
}
}
setBunload(true);
“
Anyone else seeing this error in IE7?
The error goes away once the ‘Check’ button has been selected.
Thx
Kevin Gunn
Software Engineer
Australian Institute of Marine Science
Ph: (07) 47534305
Fax: (07) 4772 5852
E-mail: k.gunn@anonymised.com
------------------------------------------------------------------------|
The information contained in this communication is for the use of the |
individual or entity to whom it is addressed, and may contain |
information which is the subject of legal privilege and/or copyright. |
If you have received this communication in error, please notify the |
sender by return E-Mail and delete the transmission, together with any |
attachments, from your system. Thank you. |
------------------------------------------------------------------------|
--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.
If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------