Wednesday, November 07, 2007

Problem with IE print preview and window.close()

In IE, when window.close() or self.close() is executed, the window is closing perfectly. But when after opening a print preview window from file menu in IE and after closing the print preview with [X] button, then the window.close() is not working. Is there any solution to close the window even after closing the print preview window?

I am looking this solution, too. Unfortunately, this post land to wrong forum and no answer provide.

Friday, October 26, 2007

javascript form reset()

Today, I am looking at the a problem at form.reset().

I found out form.reset() function suppose to be reset all form objects to original values.

I have problem in this situation :
If I delete an OPTION from a SELECT, reset() function won't recover original item.

I can't find any answers on the web.

Thursday, October 25, 2007

innerText and textContent

Try to use your HTML text/code for your confirm dialog message, below is my sample.

document.getElementById("msg").innerText is perfect for IE, but Firefox.

document.getElementById("msg").textContent works for Firefox, but loses all line breaks.

So I come out my solution :

<div style="display: none; visibility: hidden;" id="msg">
Deleting this category will lose all articles.
Do you really want to do it?</div>

function confirmDeletion() {
var msg = document.getElementById("msg").innerHTML.replace(/
if (confirm(msg) ) {
return false;

Friday, September 28, 2007


<LEGEND><h2>build your pizza</h2></LEGEND>
<LABEL><H3>select your toppings</H3>
<SELECT name= "toppings" multiple>
<LABEL><H3> pick a crust:</H3>
<INPUT type= "radio" name= "crust" value= "deep dish" checked> deep-dish<BR>
<INPUT type= "radio" name= "crust" value= "whole wheat"> whole wheat</LABEL>

In the above sample layout, I can see the header H2 in the Fieldset outline correctly only in IE, but Firefox.

This gives me some trouble. I would like to use FIELDSET for better layout. Also, I would like to use H2 for better accessibility -- screen reader (JAWS) can separate different section of content. Unfortunately, it doesn't look great in Firxfox. Sine I have urgent of accessibility. I need to drop FIELDSET/LEGEND.

Wednesday, September 05, 2007


Just install silverlight on IE7.

After refresh the silverlight home page, I got

Silverlight Error :

Error Type: DownloadError
Error Code : 4001

Not very good start.

Wednesday, July 25, 2007

Excel can't open .csv file with UTF-8 encoding content.

This is my another day pain.

This is what open office can do, but not excel.

Tuesday, July 10, 2007

MSN virtaul Earth

It's interested three major internet services(Google, Yahoo, MSN) competing each other. Microsoft is the one like to chase Google.

Google got the 3D Map for a while. I were fascinated that we can fly around the around and see trees, rivers, houses. The satellite map is really helpful to visualize the distance from the top and give me more solid idea from point to point and turn to turn because I can always reference the building, landmark. I trace through train rail line, my bike route, and optimize the local route.

At sometime, MSN came out satellite map, too. Unfortunately, the map was so old. I didn't see my house and the community I living and that's black white. I were wondering that picture was taken back to '80s. Despite the recent MSN claim whatever they have and improvement, I still see the same old map.

Wednesday, June 27, 2007

Safari 3 auto update

One time, I did update to 3.01. After that, I still got 3.02 upgrade dialog.
I was busy at that time, and decide to do it later. So, I canceled the upgrade.

Well, where is the auto upgrade in the Safari 3? I don't see it in the menu and preference.

I just want to check Safari is still hanging in https.

Friday, June 22, 2007

HTML required fields

In HTML5, it defines "required" attribute for the required fields. The example is


<li><label> Name: <input type="text" name="name" required="required" /></label></li>

<li><label> Comment: <input type="text" name="comment"


In the W3C WCG20, SCR25: Using Dynamic Web Content Accessibility to programmatically identify form fields as required, it also mentions "required" attribute for required fields. But, in that script sample, it shows

setAttrNS(field, "required", "true");

And, screen reader should be able to read out.

Both above sites use the same attribute "required". My question is here :

Can screen reader still read out if required="required"?

I incline to HTML5 since it's much clean and easy in the design.

Thursday, June 14, 2007

AWAI Member :: View topic - For Those Who Use XSitepro...

AWAI Member :: View topic - For Those Who Use XSitepro...

Copy-and-paste from word containing the following line is really trouble.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I am wondering what kind of environment will produce that namespace.

Monday, June 11, 2007

Safari 3 on Vista

I just have a Safari 3 installed on Vista. I am experiencing extreme slow in https. Almost, can't load the page and eventually crash.

I am still looking some sites. It's interested to see mac style (scroll bar, button) on the window. Even, the native style of BUTTON tag.

Tuesday, May 01, 2007

Monday, March 05, 2007

Tableless forms?

I don't know why eveyone talking how tableless is good.
In this sample, it looks good, but it's not portable since it hard code the width.

Tuesday, February 06, 2007

Eclipse features

I am getting frustrated on Eclipse. I have very a large of code base. One time, I may open more than ten files.

1, I may put some debugging code in the java files, like System.out.println(). But, when I finish, I may forget where do I put the debugging code. Therefore, I need to search all open files -- tons of files. I can't just search workspace, some of debugging codes are for testing. Now, I am missing my favor java editor, jEdit. It allow me to search all opening files.

2, When I open java and html files, but it's getting hard to manage them. Eclipse should have view of all open files. Or to have better way to group different file extensions. Right now, it is hard to look up other files.

3, Another my favor feature in jEdit is tab/space character indicator. My code base is huge and a lot of legacy issue. I need to use space for indentation, but I want to know any tab characters in the files.

Tuesday, January 23, 2007

Technology Review: Battery Breakthrough?

Technology Review: Battery Breakthrough?

Along this article, those peoples' comments are most knowledge I ever read.

Friday, January 19, 2007

IE line-height style bug

I have the following HTML code. The images are really the trouble to line-height style. You can see that when window is very small.

<DIV style="line-height:250%;">
<IMG SRC="" ALT=""><A HREF="#"> Yahoo is your e-mail portal</A>
<IMG SRC="" ALT=""><A HREF="#""> Goolge is your search portal</A>
<IMG SRC="" ALT=""><A HREF="#""> Amazon is your shopping portal</A>

<DIV style="line-height:250%;">
<A HREF="#"> Yahoo is your e-mail portal</A>
<A HREF="#"> Goolge is your search portal</A>
<A HREF="#"> Amazon is your shopping portal</A>

Tuesday, January 09, 2007

Apple - iPhone

Apple - iPhone
It has built-in google map. That's cool.
What kind of connection for google map? Does it has intelligent to use wi-fi connection if available?