JScript error from homepage with IE 3.0
#1
Guest
Posts: n/a
JScript error from homepage with IE 3.0
With IE 3.0, the homepage gives:
Microsoft JScript runtime error
[Line: 29] Object doesn't support this property or method
It looks like this version of IE doesn't support String.split(). Perhaps you can use toDay.getYear() instead (this also avoids problems at the end of
year in non-GMT timezones).
__Martin
Microsoft JScript runtime error
[Line: 29] Object doesn't support this property or method
It looks like this version of IE doesn't support String.split(). Perhaps you can use toDay.getYear() instead (this also avoids problems at the end of
year in non-GMT timezones).
__Martin
#2
Guest
Posts: n/a
Re: JScript error from homepage with IE 3.0
Matt had some other guy write the home page code for him. This dude must have a fixation with getting the 4-digit year by referencing GMT. I told Matt of the problem with end-of-year in non-GMT time zones. Now we learn that the split method isn't supported by IE 3.
I suggested that they use the following code. It yields the 4-digit year on *any* browser, and doesn't need to use GMT or "split".
var theYear = theDate.getYear();
if (theYear < 1000) theYear += 1900;
I suggested that they use the following code. It yields the 4-digit year on *any* browser, and doesn't need to use GMT or "split".
var theYear = theDate.getYear();
if (theYear < 1000) theYear += 1900;
Thread
Thread Starter
Forum
Replies
Last Post
SJGQ5
Q5/SQ5 MKI (8R) Discussion
6
08-11-2022 06:51 AM
Able89
A6 / S6 (C5 Platform) Discussion
1
09-28-2015 05:35 PM
imag1ne
A6 (C7 Platform) Discussion
1
09-28-2015 01:05 PM