[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] Thunderbird Style Address Completion - javascript
From:       Rajib Momen <elrond () bostoncomputing ! net>
Date:       2009-04-03 22:35:45
Message-ID: 49D68F41.8070500 () bostoncomputing ! net
[Download RAW message or body]

I've narrowed down what address book listings cause this problem. When the lastname \
variable in the address book is just a number, rather than letters or a combination \
of letters and numbers, the error occurs.

-- 
Best regards,
Rajib Momen

President, Director of I.T.
Boston Computing Network
http://www.bostoncomputing.net 

Rajib Momen wrote:
> For some address book lists, I am receiving the a Javascript error when composing a \
> message with auto-completion on. Nothing auto-completes in the address To:/CC:/BCC: \
> windows, but rather an error message comes up at the bottom. The error is as \
> follows: 
> Line: 930
> Char: 2
> Error: Object doesn't support this property or method
> Code: 0
> URL: /src/compose.php
> 
> 
> Line 930 seems to refer to the function tbaddrReformat in functions.php:
> 
> function tbaddrReformat (email) {
> var tbarray = tbarrays[0];
> if(tbarray.length==0) return email;
> var i;
> email=trim(email);
> for (i = 0; i < tbarray.length; i++) {
> if (tbarray[i][0]!=undefined && tbarray[i][0].toLowerCase()==email.toLowerCase()) \
> break; }
> if(i==tbarray.length) return email;
> var name=tbarray[i][1]+" "+tbarray[i][2];
> if(email.indexOf(',')!=-1) return email;
> else    return '"'+name+'" <'+email+'>';
> }
> 
> I haven't yet been able to isolate what particular addresses from the address book \
> are causing this problem, because it only happens for some users' Personal Address \
> Books. 
> This error is occurring for me in versions 0.89+ but does not happen when I replace \
> the plugin with 0.721. 

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic