[dev] Identities
Jan Kuipers
jrkuipers@lauwerscollege.nl
Fri, 29 Jun 2001 17:10:38 +0200
Citeren Jan Schneider <janmailing@gmx.de>:
> Ah, this leads us nearer to a solution.
> Please double click on the exclamation mark and tell me the message showing
> up.
> It's obviously a javascript problem not a imp or php one.
Below part of pagesource
-------------<snip>---------------
</script>
<script language="JavaScript" type="text/javascript">
var cancelSubmit = false;
var fields = new Array(
new Array(
"Default identity",
"Jan Kuipers",
"",
"",
"Jan Kuipers,\nSysteembeheer Lauwers College",
"1",
"0"
), new Array(
"Onbenoemd",
"Jan Kuipers",
"<br>
<b>Warning</b>: Undefined index: from_addr in
<b>/usr/local/apache/htdocs/hordenew/horde/imp/templates/identities/javascript.i
nc</b> on line <b>10</b><br>
",
"",
"Jan Kuipers,\nSysteembeheer Lauwers College",
"1",
"0"
));
function updateForm(identity)
{
document.identities.edit_identity.value = identity;
document.identities.id.value = fields[identity][0];
document.identities.fullname.value = fields[identity][1];
document.identities.from_addr.value = fields[identity][2];
document.identities.replyto_addr.value = fields[identity][3];
document.identities.signature.value = fields[identity][4];
if (fields[identity][5] != 0) document.identities.sig_dashes.checked = true;
if (fields[identity][6] != 0) document.identities.sig_first.checked = true;
cancelSubmit = true;
}
function clearForm()
{
document.identities.edit_identity.value = '';
document.identities.id.value = '';
document.identities.fullname.value = '';
document.identities.from_addr.value = '';
document.identities.replyto_addr.value = '';
document.identities.signature.value = '';
document.identities.sig_dashes.checked = false;
document.identities.sig_first.checked = false;
cancelSubmit = true;
}
function checkSubmit()
{
cancel = cancelSubmit;
cancelSubmit = false;
window.event.returnValue = !cancel;
return !cancel;
}
</script>
-----------------------<snip>-----------------
Does this:
<b>Warning</b>: Undefined index: from_addr....etc
has something to do with it? I don't let users to choose a from_address, so
it's blank and locked!
--
Jan Kuipers,
Systeembeheer Lauwers College