Justin Cooney

Web Development Tips and Examples

  • A very interesting article about writing HTML5 Geolocation written by Zeeshan Akhter

    zeeshanakhter2009's avatarZeeshan Akhter

    Geolocation is a way for the user to retrieve their position and share where they are. This can be done in a few ways, by using a GPS as the one in your new smartphone or connected to your computer is the most precise method. But for users without GPS the browser will use your IP and or try to find nearby WLAN stations, however this is not as precise but gives some idea of where they are. Exactly how this is done is not a W3C standard and each browser have their own way to do it.

    Even though geolocation is really complicated it’s quite easy for you to implement. In this tutorial I will show you how to retrieve the user’s position and display it on a map using Google Maps. So lets get started.

    Step 1. Create the HTML layout

    We start of by creating a simple…

    View original post 1,156 more words

  • See on Scoop.itJQuery-Features

    Here is a very interesting discussion on the StackOverflow forums about using JQuery to build an asynchronous file upload component. People propose many different solutions such as Flash, a hidden IFrame, or to using HTML5. Although the discussion happened some time ago between 2008 and 2009, it is still relevant and interesting to read today.

    See on stackoverflow.com

  • Outlook Custom Search Fields
    Outlook Custom Search Fields

    VSTO for MS Outlook can be a powerful way to customize Outlook programmatically. However, the syntax can be finicky at times and I have found a few instances where the programming logic becomes tricky.

    For example, you can use VSTO to add a text box to the Outlook command bar window. This can be put to a number of good uses when building a custom component for Outlook. My thoughts behind adding the controls to Outlook were to allow the user to select a type of search to run in the custom dropdown list, and then to use the text box for the user to add text that the system would use to run a search on custom email fields.

    In my case I wanted to add a textbox and a ComboBox to my main Outlook Explorer view. The VSTO controls in Outlook are called msoControlEdit and msoControlComboBox respectively.

    At first glance adding a simple text box and dropdown list sounds like a simple requirement. But as I found out, this isn’t quite the case. The problem? Outlook by default will clear any entered text from the new text box when focus is lost. I’m not sure what the reasoning behind this is, but from reading help articles  and forum posts, it appears that many people are coming up against the same problem.

    As a positive, the ComboBox control does retain selected text, so we will not need to worry about handling this control.

    For the convenience of readers of this article; I am including a full example of how to add a textbox and a ComboBox  to the Outlook main command bar at the end of this article.

    (more…)