WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Guru, e-Zitate & Off Topic (http://www.wcm.at/forum/forumdisplay.php?f=15)
-   -   Profis @ WKO (http://www.wcm.at/forum/showthread.php?t=115028)

_m3 10.11.2003 11:48

Profis @ WKO
 
Die Wirtschaftskammer Oesterreichs ist wirklich toll. Vor allem die Webmaster beherrschen ihr Geschaeft. :lol:
http://portal.wko.at/portal.wk?AngID...aram=AngID%3d1
http://www.leyrer.priv.at./leyrer/wcm/wko.jpg
Den Fehler macht seit dem 2.1.2000 KEIN normaler Perl-Programmierer mehr.
Sehr traurig. :(

renew 10.11.2003 12:02

Jetzt ists schon ausgebessert.... ;)

_m3 10.11.2003 12:10

ROTFL
Es ist VIEL schlimmer, als ich dachte.
Das ist kein Perl-SCript dahinter, sondern ein Client-seitiges JavaScript.
Code:

Letzte Aktualisierung: <script language="JavaScript">
<!--

Heute=new Date();
var Tag=Heute.getDate();
var Monat=Heute.getMonth()+1;
var Jahr=Heute.getYear();             

document.write(''+Tag+'.'+Monat+'.'+Jahr+'
');

//-->

Da hat wieder mal wer nur mit dem IE getestet:
Zitat:

The specifications for JavaScript indicate that this function should return years since 1900 and that the function getFullYear() should be used to retrieve a full, 4-digit year. Internet Explorer sometimes returns all four digits when getYear() is used.

maxb 10.11.2003 12:19

wer IE hat, der hat's gut :D

_m3 10.11.2003 12:24

Wieder ein Beispiel, wie wenig sich der IE an die Standards haelt. :ms:

maXTC 10.11.2003 12:46

Zitat:

Original geschrieben von _m3
Wieder ein Beispiel, wie wenig sich der IE an die Standards haelt. :ms:
komischerweise funktionieren diese seiten aber mit dem IE einwandfrei :p

_m3 10.11.2003 12:57

Das zeigt nur, wie wenig Ahnung die Leute haben, die diese Seiten bauen.

Was mich so aergert ist, dass Microsoft meint:
Zitat:

JScript is the Microsoft implementation of the ECMA 262 language specification (ECMAScript Edition 3). With only a few minor exceptions (to maintain backwards compatibility), JScript is a full implementation of the ECMA standard.
, gleichzeitig aber die Spezifikation mit Fuessen tritt:
Zitat:

The getFullYear method is preferred for nearly all purposes, because it avoids the “year 2000
problem.”
When the getYear method is called with no arguments the following steps are taken:
1. Let t be this time value.
2. If t is NaN, return NaN.
3. Return YearFromTime(LocalTime(t)) − 1900.
Wuerde MS die Spezifikationen einhalten, muessten sich die Webdesigner nicht mit derartigen Kleinigkeiten auseinandersetzen. DANKE MICROSOFT !!! :ms: :mad:

pc.net 10.11.2003 13:23

da bekommt der satz "letzte aktuallisierung am ..." eine ganz neue bedeutung :verwirrt: ...


Alle Zeitangaben in WEZ +2. Es ist jetzt 15:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag