THIS WEEK JAVASCRIPT LITTLE HACKS (0)




This week, I encountered two little problems that can take time to fix if you don't search with the proper keywords on google.

First bug occured in Firefox 3...yes in Firefox 3! I just created an absolute positionned div in javascript with a textfield inside. The problem was that the focus was on the textfield as I wanted but we could not see the blinking caret!..quite disturbing as a user experience.
The bug is well known and not new. The solution was just to use position : fixed instead of absolute. (but not for IE6..it would broke my design). As I use mootools I wrote something like this (you can make it shorter of course):


if(Browser.Engine.trident4){
myDiv.set({
'styles':{
'position':'absolute'
}
});
}else{
myDiv.set({
'styles':{
'position':'fixed'
}
});
}


And the problem was fixed!..hehe [When I found the solution I remembered then that I had the same problem last year...fail from me...]

Second problem was in IE using mootools 1.2 and the drag & drop stuff...It simply did not work as IE doesn't manage the event the same way, I found the solution in the google group for mootools : just add somewhere the following line and rock'na roll! :

document.ondragstart = function () { return false; };

2008-07-31 20:56:24

  • キーワード :

GOOGLE DEVELOPER DAY 09 - YOKOHAMA

For the second year in a row I could enjoy this event with my co-workers from Samurai Factory. First I enjoy it because it takes place only 12mn from home by bicycle ^_^ and then of course because of the information we can gather during the day. You may say that looking at the video from the IO event you can get quite the same info, that's partly true. But attending the event you got also information specifically related to the Japanese market and you got goodies! *_* and this year... 続きを見る


2009-06-11 08:20:40 - コメント : 3

FIXED GEAR VIDEOS

I played a little bit with the YouTube API today, using the classes provided by Zend Framework. The result is a Fixed Gear Videos Gallery. It is quite basic for now, it just retrieves the latest fixed gear videos published on YouTube. Plus, I made 3 categories : videos from Japan, France and the Anglophone world. The way I do the search for each category is far from perfect but it works not too bad for now. Then you just have to click on the icon and the video will be displayed in a ni... 続きを見る


2009-02-11 05:36:31 - コメント : 0

PHOTOGRAPHY FROM JAPAN

Just added more albums in the gallery section. Photos are hosted on zooomr, I will explain this week in a post how to get them on your homepage using the API, it's pretty much the same as for Flickr... 続きを見る


2008-12-29 22:24:22 - コメント : 0

BLOG NEW FEATURES

Yesterday I changed a little bit the top page of the blog. I added a new category of post called "Short News" (from Japan). Each post will be mainly composed of few pictures and just a short comment. I will send some stuff unusual or/and funny/interesting (at least for me ) that I'll notice in my everyday life here in Japan. To separate this "Short News" from the "longer" posts that I've already published on the blog, I added a tab system on the top page : So, with the tabs you can... 続きを見る


2008-11-04 06:46:12 - コメント : 0

PHOTO GALLERY WITH FLICKR API

Yesterday, I upgraded this homepage with a photos gallery so from now I'll be able to share with you my photos, I am sure you were waiting for this..hum...:) Actually, I also did it because I wanted to try some stuff with the flickr API. I already tried it for my gallery of Fixed Gear in Japan, but I wanted to go a little bit further to build a full gallery of albums feeded directly by Flickr. The advantage is first that the photos are hosted by them and then there are many tools to up... 続きを見る


2008-09-02 06:19:34 - コメント : 0