Posterous theme by Cory Watilo

Filed under: techie-stuff

Will Microsoft ever get the internet?

Came across the Media Feature Pack for Windows 7 (SP1) that’s been released recently:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=31017ed3-166a-4c75-b90c-a6cef9b414c4###

 So I’m having a quick look to see if it’s worth installing and read the opening page.

Image001

So let me get this right.  In order to find out what’s in the Media Feature pack I have too:

  1. Copy the http://support.microsoft.com to the clipboard
  2. Open a new tab and paste the link in
  3. Bob back to the previous tab to copy the knowledgebase number
  4. Then bob back to the knowledgebase tab I’ve just opened
  5. And paste the KB number into the search field.
  6. Click the search link
  7. Find the knowledge base article from the results (granted it’s at the top).
  8. Read and enjoy

Microsoft.  May I introduce to you, the hyperlink?

</rant>

 

 

 

 

 

 

Add a user interface to mailto hyperlinks with a jquery plug-in, manyMail

default mailto link behaviour

Hi,

In an upcoming toepoke.co.uk build we've added the ability to e-mail all the players in a match. Just for simple stuff like arranging lifts, last minute changes, etc.

We didn't want to get into creating a full blown e-mailing system, there's an app for that wink. Instead I simply used a normal mailto link, which brings up whatever e-mail client is installed.

Now this works fine if the user has an e-mail client installed, but what if you use web based e-mail client? If you're interested in knowing more, please read the full article with demos, code and full explanation of the plug-in

Please note that version 1.0.2 has been released today (01-Jul-11).  The article above has been updated to reflect the changes.

Hope you find this useful,
Team TP.

  • kick it on DotNetKicks.com
  • Share
  • Shout it

Capitalise text inputs with css

When I was build the sign-up screen for toepoke.co.uk I wanted to tidy up the data entry for the player’s name so you get capitalised names.

 

Image001

 

My first thought was to tie into the jQuery focus event and do a little JavaScript once the user left the input field.

 

Thankfully I thought a little bit more and remembered the text-transform property in CSS, and wondered if this would work against text input fields as well as heading and p tags, etc.

 

.tcase {

    text-transform: capitalize;

}             

 

Turns out it works quite well, and the above works under most of the modern browsers.  Tested and works in Chrome 7,IE 8, FF 3.6, Safari 5, but sadly not Opera 10.  Of course the text-transform property is an aesthetic effect, so I can live with it not working in Opera. 

 

Also bear in mind if the user enters their name in lowercase, their name will be in lowercase when the form is posted to the server, so you’ll still need to capitalise on the server-side.  Something like the following C# string extension should do the trick. (or see http://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitle... as kindly pointed at by Maarten van der Lee below)

 

     /// <summary>

    /// Converts the input string into an initial version, so "fred" or "FRED" becomes "Fred"

    /// </summary>

    /// <param name="input"></param>

    /// <returns></returns>

    public static string ToInitial(this string input)

    {

        if (string.IsNullOrEmpty(input))

            return "";

 

        return 

            input.FirstOrDefault().ToString().ToUpper() +

            input.Substring(1).ToLower();

    }

 

You can see the above in action on our sign-up page (http://toepoke.co.uk/user.aspx/create). Naturally this can be extended to use the uppercase and lowercase text-transform rules (uppercase is quite useful for postcodes too).

Hope this proves useful for someone.

 

Kind regards,

Team TP.

 

 

Find this useful?

kick it on DotNetKicks.com Shout it

Share