I am trying to use our Intranet Director as a Global Address Book in web messaging. I
have add a link which will bring up a searchable directory in a pop-up window. You
can search our Intranet Directory to find the user you are looking for. I was using
JavaScript to pass the email address back to the mail server compose form, very
similar to the way Imail allows users to select from the personal address book. I had
it working on our test server, but could not get it to work when applied to the mail
server. I think the problem exsit because they are two different servers. Any help
or suggestions would be appriceated. Below is the JavaScript code used to pass the
email address back to the compose form, I am receiving a JavaScript error as access
denied.
<SCRIPT LANGUAGE = "JavaScript">
<!--
// function to populate the to address on the form and to close this window. --->
function ShowTo(email)
{
var FormName = "SendMail";
var FieldName = "to";
var EmailTo = email;
if (self.opener.document.SendMail.to.value == "")
{
self.opener.document.SendMail.to.value = EmailTo;
}
address = self.opener.document.SendMail.to.value;
index = address.indexOf(EmailTo, 0);
if (index == -1)
{
self.opener.document.SendMail.to.value =
self.opener.document.SendMail.to.value + ',' + ' ' + EmailTo;
}
}
// function to populate the CC address on the form and to close this window. --->
function ShowCC(email)
{
var FormName = "SendMail";
var FieldName = "cc";
var EmailTo = email;
if (self.opener.document.SendMail.cc.value == "")
{
self.opener.document.SendMail.cc.value = EmailTo;
}
address = self.opener.document.SendMail.cc.value;
index = address.indexOf(EmailTo, 0);
if (index == -1)
{
self.opener.document.SendMail.cc.value =
self.opener.document.SendMail.cc.value + ',' + ' ' + EmailTo;
}
}
// function to populate the BCC address on the form and to close this window. --->
function ShowBCC(email)
{
var FormName = "SendMail";
var FieldName = "bcc";
var EmailTo = email;
if (self.opener.document.SendMail.bcc.value == "")
{
self.opener.document.SendMail.bcc.value = EmailTo;
}
address = self.opener.document.SendMail.bcc.value;
index = address.indexOf(EmailTo, 0);
if (index == -1)
{
self.opener.document.SendMail.bcc.value =
self.opener.document.SendMail.bcc.value + ',' + ' ' + EmailTo;
}
}
//-->
</SCRIPT>
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/