
totally great! full of insights, but not for novice programmers. i knew the 4th edition published in 2001 was too out-of-dated in this ajax age, so it didn’t attract me a little bit. but i heard the 5th published in this August, 2006, and its reviews were great. so i decide to buy it.
i give 5 stars to this lovely book!
debug codes in firebug cause some critical error in other browsers like ie. and you know debug codes in a published product aren’t desirable at all. so i think you need this peice of code. so even if you forget to remove all debug codes, no serious error occurs!
__DEBUG__ = true;
__DEBUG_FORCE__ = false;
if (__DEBUG_FORCE__ && typeof console == ‘undefined’) {
console = {
log : alert,
debug : alert,
info : alert,
warn : alert,
error : alert
};
}
else if (!__DEBUG__ || typeof console == ‘undefined’) {
console = {
log : function () {},
debug : function () {},
info : function () {},
warn : function () {},
error : function () {}
};
}
so you feel somewhat safe, just like me
anyway firebug is great tool! it’s a mandatory not recommend!
if cache is on, you always get a same result on a same url request. it’s somewhat undesirable. there exist some strategies for this.
1. use ‘post’ instead ‘get’
browsers usually cache get request, especially IE. but sometimes post will be cached too. you must be careful when you think about supporting as many browsers as you can.
2. add unique parameters that make url unique.
url += ((url.indexOf("?") +1) ? "&" : "?" )+ "_d=" + new Date().getTime();
or
url += ((url.indexOf("?")+1) ? "&" : "?") + "_r=" + Math.random();
3. add cache-control to http request header
this code is different by the type of cgi language you use
below is a php sample code
header(’Content-Type: text/html; charset=iso-8859-2′);
header(’Last-Modified: ‘.gmdate(’D, d M Y H:i:s’).’ GMT’);
header(’Expires: Thu, 19 Nov 1981 08:52:00 GMT’);
header(’Cache-Control: no-store, no-cache, must-revalidate’);
header(’Cache-Control: post-check=0, pre-check=0′, false);
header(’Pragma: no-cache’);
4. add cache-control to meta tag
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
1 & 2 are surely enough for my purpose till now
is there any more? please notify me~
it’s a season’s greeting card for you.

Great job, it’s just unbelievable that it was published in ’60s. it gives so much impressions and insprirations to me! Sam Haskins is one of the best photographers in the world! this book is recently (maybe october) republished, and used book’s price was too high. only a few book of him is available now. the most book i want is "5 girls", but don’t know how long i have to wait.
I bought this book on amazon.co.jp, it was under $30 and no delivery fee! thanx, amazon.co.jp!
this book is some kind of Xmas present for me. and a champagne, moet-et-chandon nectar imperial. merry christmas to me!
actually, i’m not willing to recommend it, because it’s in beta state, somewhat unstable.. but i found it very useful or maybe i can say powerful than ever, so i post this article.
you can get it from http://www.getfirebug.com/
i could hardly image the web development without firebug, it’s only few weeks ago..
P.S. i got an lesson(you know my last post), even most great tools can’t make people smarter. if you’re fool, debugging time spent will be same whatever your tool is.. so in any case, don’t blame this splendid tool..
when developing ajax uploader using hidden iframe, i found some strange things..
it doesn’t work
<form target="frame">
<input>
</form>
<iframe name="frame">
but, it works fine
<form target="frame">
<iframe name="frame">
<input>
</form>
i spend all day for this problem.. please tell me what the frame is…
P.S. there’s two kind of ajax uploading technic. one is set target like above example
the other is using upload form in iframe’s src.. both have the same problem..
i use iTerm in mac, and notice that mac’s default terminal output is monochrome.. does it make you surprise?
umm.. so i decide to display some color. and i set the background black, it is needed to change color sheme..
default ls command in mac lacks of functions, i install gnu fileutils and get ls from there.
and set .bashrc like this
alias ls=’ls –color=auto -NF’
export LS_COLORS=’no=00:fi=00:di=01;33:ln=01;36:pi=33:so=01;35:
bd=01;33:cd=01;33:ex=01;32:*.c=36:*.cc=36:*.h=33:*.cmd=01;32:*.exe=01;32:
*.com=01;32:*.btm=01;32:*.bat=01;32:*.app=01;32:*.tar=00;31:*.tgz=00;31:
*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:
*.sit=00;31:*.sitX=00;31:*.zip=00;31:*.bin=00;31:*.hqx=00;31:*.jpg=00;35:
*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:
*.tiff=00;35:*.pdf=00;35:*.avi=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:
*.asf=00;35:*.wmv=00;35:*.rm=00;35:*.swf=00;35:*.mp3=00;35:*.aiff=00;35:
*.aif=00;35:*.snd=00;35:*.wav=00;35:’
i upgade vi to vim using darwin port, and set .vimrc like this
syntax on
colorscheme darkblue
it works fine to me.. good luck to mac users!
some of my friend(or just a person i know) opened online apparel.
actually this site has so many problems that caused by novice designers and the absence of good web programmers. too buggy and unmaintainable html & php, ignore any kind of seo, no marketing tools are provided at all. this type of web pages has been existed since the late ’90. and because of cheap cost, it will last so long..
but anyway, the model in this site is somewhat cool(someone says it’s made by a special photographer). so i introduce it to you! enjoy it!
http://runway.cc/
maxthon is a good alternative of IE. i waited so much and this one is much better than 1.x! wow, great!
http://passport.maxthon.com/max2/
it has got every thing i want, except firefox add-ons ^_^; but very useful and cool! just try and you may experience what the next generation browser is (of course it’s not IE7)