Later Today: ASP.NET Tutorial 2: Introduction to C#

(jQuery) Add “Smart” Default Values to Form TextBoxes

This article covers a handy usability feature that will allow you to set “smart” default values in your form textboxes. The JavaScript handles three things – coloring (gray for default, black for user-entered values), automatically clearing the field when a user selects it, and automatically replacing the default text if the user de-selects the field without entering anything.

This is particularly useful for forms targeting mobile browsers (such as iPhone or Android, since you can then use the field itself as a label) – or forms where you want to include some “example text” in certain fields. It’s a very clean, intuitive way of improving the usability of any web form.

Continue Reading this Article >>

(jQuery) Make Vimeo Embeds iPhone-friendly… Automagically!

This article demonstrates the use of a neat bit of jQuery that will automagically make your Vimeo embeds work on an iPhone or iPad.

If you’re a Vimeo user you may have noticed that the service recently added mobile compatibility to their already-respectable list of features. There is a caveat, though. This new mobile compatibility does NOT extend to videos that you embed on your site – only videos that you watch on the Vimeo website. But what if you use Vimeo primarily for embedding videos on your own site, and you want those videos to be watchable on an iPhone or iPad? Vimeos official stance is… add a link. This is *not* ideal.

Fortunately, with a creative bit of jQuery and HTML 5, we can detect mobile browsers and automatically replace Vimeo’s flash player on a webpage with an HTML 5 one when appropriate.

Continue Reading this Article >>

(C#) Sending an Email with an Attachment (via Form)

This article explains how to send an email that includes an attachment from a web form. This is particularly useful if you need to create a web form that allows users to upload their own file attachments. The examples in this article assume that you already have a form with a FileUpload element in it, named “fuAttachment”. This particular method is especially useful since it does not require you to save any files to the server before sending the email. The posted data is instead handled directly.

You should already by familiar with sending emails from ASP.NET before reading this article.

Continue Reading this Article >>

(C#) Sending an Email (Plain-Text & HTML)

This article covers the various methods of sending an email using C#, either in plain text or HTML.

Continue Reading this Article >>
RSS Twitter LinkedIn Facebook
Doing neato things with JavaScript, please wait...