Monday, August 07, 2006

CSS Browser Selector

This is post at Ajaxian.

It seems useful for me.

In case my web application has to support Opera, I'll use this.


Tuesday, August 01, 2006

Internet Explore can not add 'name' attribute to radio button dynamically.

When I added radio button element by using DOM method, 'name' attribute did't apper correctly in Internet Explore.

Please reffer this web site.

I changed my code like this.

// for DOM compatible.
if (navigator.appName.indexOf("Microsoft Internet Explorer") == -1) {
  obj = document.createElement( "input" ); = "group1";
// for IE.
  obj = document.createElement( "<input name='group1'>" );


Saturday, June 17, 2006

How to make a drop down menu.

Last time, my drop down menu didn't work at IE, so I read this book.

You can check sample at auther's web site.

Many web hosting services don't allow .htc file, so I had to use a small javascript to simulate 'hover' pusude class.

This time, my drop down menu works at both Firefox and IE.

I can still keep html simple. It must be good for a prototype.

'CSS filter' is also useful to make a cross browser application.

I often use 'Tan Hack' to manage the differenc between Firefox and IE.
Tan Hack: * html tagname {}



I added categories.

I added categories in this blog.

I reffered this site.

But, I haven't understood how to use yet. :-(


Sunday, April 02, 2006

How to make a drop down menu by CSS.

To make drop down menu, I reffer this book.

The way this book describe doesn't need JavaScript. However, it needs .htc file for IE.

You can check sample at auther's web site.

If you see the source code, you can notice that it doesn't use JavaScript.

It must be good for a prototype.

I put my sample here.

It work on FireFox but doesn't on IE. The reason may be the server doesn't accept .htc file unfortunately. :-(


Saturday, March 25, 2006

A reference book for JavaScript.

I use "Professional JavaScript" for a reference book about JavaScript.

I think this bood is good enogh to study JavaScript.
Other specialized books are too thick for me.

Reading this book, I could learn how to use JavaScript for object-oriented programming.

This book has already second printing.

You can tell if you have the second printing of the book by looking at the front page with the copyright information at the bottom.

There is a line that looks like this:

10 9 8 7 6 5 4 3 2 1

If you have a copy from the second printing, it will look like this:

10 9 8 7 6 5 4 3 2

And the errata is viewable here.



Friday, March 10, 2006

FireFox bug

When I make textbox select automatically, FireFox doesn't work correctly.

   <- This is selected automatically.

   <- This is normal.

The code is like this:
  <input type="text" value="aaaaaa" onfocus="">

In FireFox it succeed only every other time.
This is very important for my job, so please fix it.


Sunday, March 05, 2006

Hack for Blogger

This book is usefull for hacking blogger.

Without this book, I can't add track back and recent comment list.
I can learn HTML and CSS as well.

This is author's blog.



I added a recent comments list.

I added a recent comments list.
Please reffer Farrago Recent Comments Hack from BloggerHacks.

And, please add your comment to my blog. :-)

Sunday, February 05, 2006

I added Tracdback.

commenting and trackback have been added to this blog.

Monday, January 30, 2006

Access counter

I could add an access counter, a visitor log, and google AdSense on this site. :-)

Friday, January 13, 2006