He is working on that, he is using event.srcElement, I suggested to him in
an italian newsgroup, in order to produce compatibility with Mozilla which
he desires,
to give a name to the argument passed as an event, say (traditionally) "e":
function foo(e){
var object==(typeof(event)!="undefined")?event.srcElem ent:e.target;
//bla bla
}
that should be the good start to work latger on on Mozilla too.
Achieved with a shortcut statement, alternative way:
var object;
if( typeof(event)!="undefined") ){
object=event.srcElement;
}
else{
object=e.target;
};
if(!object) bla bla, dont think he can achieve compatibility with NS4, but
that was arguably never his goal.
The code above can be changed removing the brackets after typeof if one
doesn't like them, and the trailing column if one doesn't like it.
Irrelevant details.
innerText should be replaced with innerHTML. Reichstein is absolutely right
about it. Yeah, to be precise, the W3C recommandation argues nodes should be
added one at a time. Yet if he does that by innerHTML, he achieves the
result as well, which is what matters to not too purist eyes.
It's so nifty an application that I linked him to my website.
I suggest everybody have a look at what a nice thing he has done. Worth your
time, and it seems to me Reichstein concurs.
Additionally, he could provide a drop down menu with the returned formats of
the date. Reichstein suggests that as well. Actually, he should _at_least_
allow for the latin and anglo saxon format, say
<option>mm/dd/yyy (anglo saxon)
<option>dd/mm/yyy (latin)
Note that the application has buttons that move forward or backward month by
month, those buttons are small and could escape at a first perusal.
I suggest enlarging them a bit or giving to them a stronger color, they are
so nice a feature it is bad that at first sight they don't appear
immediately available.
It's a terrific job, a very very very nice application (I DO like stressing
good sides of the things), and I feel like praising him even if he was
using innerText - he can just "fix" that and a couple of details and he will
achieve perfection.
Speak of constructive observations expressed in a civilized manner that
doesn't belittle the achievement in the name of a few implementation details
LOL
ciao
Alberto
http://www.unitedscripters.com/