Thursday, April 27, 2006

labeling the world

Using labels for any form has become a standard habitat for me. From time to time i get angry when i am using some form on the internet which does not know about labels.. so you have to click right on the element.. not left... ah...sh*$$ not right.. now i have it ;-(

At first i did not think much about it but now, it's always an indicator if the site i am looking at is well programmed or not.

Unfortunately css3 is not starting early enough and we have to keep with css 2.1 and Windows without Cleartype activated.. which means the designers want graphics everywhere .. even in a form. (From time to time).

Using Firefox as my primary Browser i did not detect the error at first, but it looks like IE does not like images in labels.. which means, it does not work.
<label for="foo"><img .... /></label>

I don't know if it's a bug in IE or it is not in the specification for html, so shouldn't work at all.. but i tested it also with IE 7 Beta 2.. it does not work.

Wednesday, April 26, 2006

googles personalized home

Today i got a call in the morning that we need a module for the personalized home at google and it's urgent.

Well of course i knew about the personalized home feature, but i did not have any time to look how to implement something for my own.. until now.

And it is really easy, just look at the guide from google. It's just a xml File with the Data in it. Ingenious, although there is a little problem involved.

I don't know why, but when i tried testing my module i got an error until i found a server which correspond with google. I looked into the groups and all i could find was someone from israel having the same problem, but no answer.


After some testing all i could find out is that google does not like certain websites. Best is you use a server at US.

Tuesday, April 25, 2006

javascript handling fileupload through popup

Since the dawn of Ajax everyone tries to implement it even more often than before.


I, for instance happen to work on an old project, which already uses ajax technology for about 2 years. There is a form where the user can enter data and at one part you can add additional information indefinetly by clicking on a button which generates a popup to add the data, then click on save and the data is in the form.

Everything was fine, until i had to also add files ... and that was a little tricky. Everyone knows
that you can't change the value of a file input field for security reasons. But i had to find a way the user can add a file in the popup and then it apears in the form.

The idea took about 12 Seconds.. the implementation took longer ;-)

In the Popup i have a js Routine that sends the data to the js Function of the Form. I changed it so it also sends the File Input field with it. (document.getElementById();)

The Form Function takes the data and build the new elements into the dom. Now i look for the File Input Field and if i get it, i just append it where i need it.

So i have the Input Filed moved from the popup into my Form with all the data it has in it. Now i can submit the Form and get the Files i added in the popup.

Friday, April 07, 2006

Oblivion Quest "GoFish" (Warining Spoiler)

Since i have some Problems with that Quest and after searching found that i am not the only one i thought i just write a post for it. But warning, it's a spoiler, so if you don't want to know stop right here.. or here... or here ;-)

The main Problem with that Quest is to find the right Slaughterfishes, becouse the Green Marker will not show it to you after you killed about 6 of them. It will still show the location where the dead ones swim.

I am not completely sure yet, since i have not finished it yet but most of the threads i read say they have just left and made some other quests. After they went back there were additional fishes.

My guess is, there aren't all 12 Fishes there at the same time. You have to wait until new ones have been bread, only i don't know how long it takes and if you need at least one or two fishes alive for it.
I don't think they added it, but it would be funny if you killed all fishes in that water and there are no more fishes, since there are no descendeds any more.

I already killed all the ones i found and now i wait and go for some other quests, maybe the main quest, which i did'nt follow yet. If there are another Fishes then, we know.