How to capitalize word with JavaScript

Generally it is better not to interfere with the textual content from JavaScript, but if we ever had to capitalize a word, this is a very cool way to do it:

RC airplane ground station software demo

Click to see full size

Today I want to share with you an application I am working on at the moment. It is a ground station for radio controlled plane and it's purpose is to illustrate raw data sent from the plane back to the ground using on-board modem.

I am writing my application in C# using Winforms. Every instrument is a separate Windows Control Library, so it can be easily reused in a different application. So far I created 3 controls:

Accessing iFrame content from parent HTML page using jQuery

I got stuck on this one once, so I decided to write my own article.

To access the content of any iframe on your html page, you can use following:

$('#frameID').contents().find('#someElement').html();

Note, both iframes must be hosted on the same domain, otherwise you will get error, similar to this one:

Error: Permission denied for <http://localhost> to get property HTMLDocument.nodeType from <http://www.example.com>.

Neat workaround for this issue is described on Michael Mahemoff's blog, in article Cross-Domain Communication with IFrames.

Resolving: You might not have permission to use this network resource

The Issue

Last week I spent few hours trying to resolve silly issue on my Microsoft Vista Home Premium. I was unable to browse my network places. What was even more frustrating – I couldn’t browse any of the boxes on the network, including my own machine. Every time when tried to access one of the visible Network Places, I was getting error similar to this one:

You might not have permission to use this network resource error

How to create custom selectors in jQuery?

jQuery's selectors engine is one powerful piece of DOM parsing tool. It allows to easily select HTML objects based on the tag name, ID, class, or any other attribute we want. Using jQuery selectors we can significantly speed up development and make our life easier.

One of the interesting things about jQuery is the fact, we can write our own, fully customized selectors. Example below shows how can we archive that by extending standard class. In my example, I create my own custom selector, to select all elements with font color set as "red" or "blue".

Difference between IEqualityComparer and IComparer

.NET Framework supplies few useful interfaces for comparing object. Two of them: IEqualityComparer and IComparer might sound bit confusing at first, so in this article I will explain the difference between them and show them in use.

CSS opacity

Opacity is a really cool and very easy to achieve effect in CSS. In this article I will describe how to set opacity of any HTML element using smart but not standard for CSS 2.1 property.

Code below shows how to correctly set opacity of any HTML element:

Preview Code
Opacity Example
#myOpacityImage { 
  opacity:.5; 
  filter: alpha(opacity = 50);
}

Few simple SEO tips to increase your page ranking

Today it's all about Search Engine Optimization. Unless you are a massive global brand and have your adverts all over the place, you must spent some time to optimize your website to get noticed on the Internet. Well optimized and naturally indexed website will give you a lot more traffic and therefore - more customers.

In this article I will mention few steps to increase page rank in Search Engines.

XHTML Doctypes

XHTML Doctype is a very important part of every XHTML document. When correct Doctype is set, web browser knows how to parse your website and how to correctly display it to the user.

Unfortunately, Doctype definition is quite difficult to remember and we always need to google for the cheat sheet, so here is another one:

Nifty one-line IE6 CSS hack

Sometimes if there is no other way to fix UI issue we are forced to use CSS hacks. Even though they are not valid from W3C point of view, they simple do the job and save plenty of time.

In this article I will present my favourite CSS hack where we can specifically target IE6 or IE7 or any other browser.

Syndicate content