Thursday 21 June 2007

The wonderful 'Label' tag (for creating clickable labels)

The HTML Label tag for creating clickable label:
There's actually a
<form name="input" action="">
    <input type="checkbox" name="sex" id="male" />
    <label for="male">Male</label>
    <input type="checkbox" name="sex" id="female" />
    <label for="female">Female</label>
</form>

Demo:



So now if you click on the label "Male" it will check the check box with the id="male". Similarly if you click on the label "Female", it will check the check box with the id="female".

Limitation:
However the tag is not supported in Netscape 4. The following links are pages that I have come across that shows an alternative of how labels can still be made clickable by performing some magic with Javascript:

http://www.askdavetaylor.com/make_text_adjacent_to_checkbox_clickable.html
http://www.inquiry.com/techtips/dhtml_pro/10min/10min0101/10min0101.asp


Also a good, simple explanation of the label tag in here;
http://www.robertnyman.com/2005/12/09/label-the-secret-element/

Tuesday 19 June 2007

JSP and JSP Fragment

I was kind of shock to find out that there's something call JSP fragment which can be added into JSP pages (more shocking to know that I've been so blind!!! : O). Embedding "fragments" in JSP is not the same as embedding another JSP page (which I know about!!! : P).

So here are the explanations!!!

JSP:
A JSP page is a text document that contains two types of text:
  • Static data - which can be expressed in any text-based format (usually HTML).
  • Dynamic content - Constructed using JSP elements
The page can consist of one or more files. It may include other files that contain either a complete JSP page or a fragment of a JSP page.

Embedding the whole JSP page:
For embedding source files of complete JSP pages, the files should use the extension, .jsp.

Embedding the JSP fragment:
For embedding incomplete JSP segments, the files should use the extension, .jspf. (It needs not to be legal JSP pages and thus may not compile properly).

References:
http://en.allexperts.com/q/JSP-Java-Server-3299/difference-jsp-jspf-files.htm
http://publib.boulder.ibm.com/infocenter/wchelp/v5r6/index.jsp?topic=/com.ibm.commerce.developer.doc/refs/rsdjspbpjspf.htm
http://java.sun.com/developer/technicalArticles/javaserverpages/code_convention

Sunday 17 June 2007

2 Pieces of News on the wonderful world of computing!!!

To be honest, even though I am a software developer, I have to say I am still kind of ignorant about the history and the background to the industry. But I am trying to expand my knowledge (esp now that I'm working in the industry) hehe reading more news about the web, technology and the computing world.

In particular I came across 2 piece of news articles this week which definitely deserve to be mentioned in my blog!!!

News #1: Web inventor gets Queen's honour
In particular being a web developer how can I NOT KNOW about the person who invented the wonderful world of WWW!!!! : O (Otherwise I wouldn't even have a job right now!! hehe) Yeah...I'm ashamed of myself!!! ><" Admittedly thanks to Sir Tim Berners-Lee for inventing the web....yeah I was attracted by the 'dot com' hype during the 90s....and hence eventually studied the programming in varsity and working now as a web developer!!! So congratulations to Sir Tim Berners-Lee for receiving the Order of Merit!!! Yeah he deserves it!!!!! : ) See the CNN Article: Web inventor gets Queen's honour


News #2: 1 Billion PCs in use by end of 2008
So by 2008, the population of PCs in the world will reach a record of 1 billion!!! Although it has taken 27 years to reach 1 billion, but it is predicted that it will only take 5 years to reach the next billion!!!!! "Ging ah"!!! See the article 1 Billion PCs in use by end of 2008.

Monday 11 June 2007

Today's trend in selling software product

I read the following article today which is about how the sales reps try to sell a software product to potential customers. It talks about today's trend in the Software Industry in terms of how to sell a software and how the big $ are earned!!! Gave me quite a bit of information on how today's software industry trades.

(In particular it belongs to part of a series of articles that talk about how Oracle became so prominent!!!)

The pitch: Inside the pressure cooker

Enjoy! :P

Tuesday 5 June 2007

I did it...after one year plus of perseverance!!! I'm a CC now!

I did it, I did it, I did it!!!!!!!!! \@.@/ YIPPY!!!!!!!

After one year plus of perseverance and dedication (or some may call me stubborn) , I did it!!! Just completed my 10th and last Toastmaster speech tonight for the Competent Communicator manual. I rarely (and try not to) commend myself...but this time I must really give myself some credits! : P I'm seriously proud of myself that I was able to stick with it, doing something that I normally 'dislike' and basically I completed this challenge that I set for myself!!!! : P Yeah!!!

On a serious note, although I dislike doing speeches, I have to say Toastmaster is definitely something that will benefit you, especially if you are not good or get freak out at public speaking or giving formal/informal/prepared/impromptu speeches. It is internationally recognised. Definitely will help those who need to speak to a lot of different people and clients in their work. One thing I particularly enjoy (and I guess I've always enjoy) is to listen to other people's speeches, especially when they got something inspirational or life experiences they talked about (will write another blog about toastmaster competition later)! You definitely learn something from others!!!

So today, I can officially call myself a CC (competent communicator). hehe : P
Yeah!!! Another goal completed for the year (see 2007 New Years Resolution). Happy happy joy joy! : P Rahhhh!

(Reference: http://i38.photobucket.com/albums/e129/hippiechick005/domokun.jpg)