Marketcircle    Forums  Hop To Forum Categories  Daylite  Hop To Forums  Share Zone    Timezones HUD Widget
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Pro
Picture of Andrew Migliore
Posted
Here is a widget that takes all addresses from a Contact or an Organization and determines the timezone for each unique city/state/country.

I couldn't find a web service so I used http://www.worldtimeserver.com/mobile/ and wrote some javascript to scrape the information from the webpage. A link is also created to go to the website.

The code depends on a couple of things:

1. country names used in contacts and organizations need to match the ISO country names:

http://www.iso.org/iso/country_codes/iso_3166_code_list...nd_code_elements.htm

2. If no country is specified US is assumed. I could make this a preference in the future so a default country could be used, or determine who the current user is and use their country.

3. I don't think Market Circle's javascript implementation supports setTimeout so the page has to be manually refreshed (CMD-R) to get an up-to-date time.

Check it out at http://www.lurkerfilms.com/FTP/timezones.zip

Comments and suggestions appreciated.

This message has been edited. Last edited by: Andrew Migliore,


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 129 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Posted Hide Post
Thanks Andrew!
This work just great!
Wery usefull for us that have customers over the hole planet. Lets hope Marked Circle will implement support of setTimeout in the future.

This message has been edited. Last edited by: Arild,


Arild
 
Posts: 12 | Location: Adelaide | Registered: September 28, 2007Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Posted Hide Post
I installed your widget and checked a few contacts and organizations and it seems to be working perfectly. Thank you, it's not always easy to remember everyones tim zone, especially from Hawaii!

I appreciate your work.

Kirk
 
Posts: 1 | Location: Hawaii | Registered: March 05, 2007Reply With QuoteEdit or Delete MessageReport This Post
Pro
Picture of Andrew Migliore
Posted Hide Post
Glad that it is working for you. It was fairly easiy to write and I like the functionality of the HUDs. Market Circle just needs to implement a few more things...

cheers


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 129 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Daylite  Hop To Forums  Share Zone    Timezones HUD Widget

© Copyright 2006 Marketcircle Inc. All rights reserved.