Results 1 to 3 of 3

Thread: com_zimbra_ymaps drag-and-drop canada

  1. #1
    Join Date
    Nov 2006
    Location
    Buffalo, NY
    Posts
    47
    Rep Power
    9

    Default com_zimbra_ymaps drag-and-drop canada

    This address works if I enter it in the yahoo maps pop-up window:

    2924 11 St. N.E. Calgary, AB T2E 7L7 CA

    but does not work if it is an email message (text is not identified as being hoverable)

    and drag and drop of a CA address does not work because it looks like the zimbra java code is alwaysing putting in country=US

    Any idea how we can correct this?
    Thanks,
    Jim...

  2. #2
    Join Date
    Nov 2006
    Location
    Buffalo, NY
    Posts
    47
    Rep Power
    9

    Default a Fix?

    Well, I knew I shuld have played around with it before posting ;-(

    I added this line in com_zimbra_ymaps.xml in the <dragSource> tag:

    <param name="country">${obj.workCountry}</param>

    and it seems to work.
    Jim...

  3. #3
    Join Date
    Apr 2007
    Posts
    8
    Rep Power
    8

    Default

    Don't know if it can help you, but I worked this morning on a regex to identify canadian addresses...

    Haven't tested it extensively yet, but it seems to work so far... (for Canadian and US addresses at least)

    Code:
    \b\d+[A-Za-z]?[ ]+([ewns]\.?[ ]+)?[A-Za-z0-9]+([ ]+[A-Za-z0-9]+)*[\s,\.](\s*(\#|[A-Za-z]+[,\.]?)[ ]*\d+[\s,\.])?\s*[A-Za-z]+([ ]+[A-Za-z]+)*[ ,][ ]*[A-Za-z]{2}([A-Za-z]+([ ][A-Za-z]+)?)?[ ]+((\d{5})|(-\d{4})|([ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d))\b
    It doesn't need the CA at the end to identify Canada, since there is the postal code... In any case, this regex works if you enter "2924 11 Calgary, AB T2E 7L7"

    If you plan on using this zimlet, delete the one you already have and rename this one com_zimbra_ymaps.zip if you want to integrate correctly... if you don't rename it, it will complain that it can't find the zimlet or report installation successful over it will not be active
    Attached Files Attached Files
    Last edited by Tenshi; 07-01-2007 at 06:58 AM.

Similar Threads

  1. Drag & Drop contacts does not work
    By Klug in forum Zimbra Connector for Outlook
    Replies: 10
    Last Post: 04-20-2007, 09:42 AM
  2. Drag and Drop Copy sample
    By zeebra in forum Developers
    Replies: 4
    Last Post: 03-12-2007, 04:48 AM
  3. Replies: 2
    Last Post: 06-19-2006, 02:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •