Forum
13:33
23/12/2010
There appears to be a breaking change in the 3.8.2 version of DateFormat function (ln. 128 of jquery.fmatter.js) where the regex tests for a Microsoft format string. If the object passed as the 'date' parameter is, in fact, a date value the 'match' method is undefined and thus an exception is thrown.
msMatch = date.match(msDateRegExp)
presumably should be qualified for either a string or method existence. Have patched locally until 3.8.3 is released
15:19
10/08/2009
Hello ksherratt,
Probably one can fix the bug by changing the line 120 of the jquery.fmatter.js from
to the following
Would the change solve your problem?
Best regards
Oleg
20:18
Moderators
30/10/2007
Thank you,
Will be fixed.
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
14:51
22/04/2010
as a suggestion - perhaps should also allow formatter to fail gracefully?
so in jquery.fmatter line 58:
try {
v = $.fn.fmatter[formatType](cellval, opts, rwd, act); }
catch(ex) {
if(opts.throwFormatExceptions==true) { throw ex; }
else {
return v;
//just return the original value
}
}
Would also need to add throwFormatExceptions to opts if want to allow fine grained control.
Most Users Ever Online: 715
Currently Online:
38 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66