Nov 02, 2012, 3:27 PM
[CLOSED] Panel.Update returns NaN in IE + FF, working fine in Chrome
Hello,
I have a Panel where I display a total and relative time, dependent upon a slider value.
IE and Firefox:
for example, my function removeYMD gets a Date object and returns a string:
I have a Panel where I display a total and relative time, dependent upon a slider value.
myPanel.update(Ext.String.format('<b>{0}</b><br><b>- - -</b><br><b>{1}</b>',
removeYMD(value1),value2));
The Chrome Result looks like:
11:19:33
- - -
00:04:01
- - -
00:04:01
NaN:NaN:NaN
- - -
aN:aN:aN
- - -
aN:aN:aN
function removeYMD(myDate) {
var myTime= myDate.getHours() + ":" + twoDigits(myDate.getMinutes()) + ":" + twoDigits(myDate.getSeconds());
return myTime;
}
In my first research I have read something about that FF has problems with parsing Numbers inside a bold tag? Sounds odd to me. Any Idea how to fix that?
Last edited by Daniil; Nov 05, 2012 at 4:11 PM.
Reason: [CLOSED]