Support Team wrote:
$(document).ready(function() {
var str_durationms = $('.customDuration')[0].innerHTML;
$('.customDuration')[0].innerHTML = str_durationms.toHHMMSSmmm();
});
String.prototype.toHHMMSSmmm = function () {
var totalms = parseInt(this, 10);
var ms = totalms % 1000;
var sec_num = Math.floor(totalms / 1000);
var hours = Math.floor(sec_num / 3600);
var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
var seconds = sec_num - (hours * 3600) - (minutes * 60);
if (hours < 10) {hours = "0"+hours;}
if (minutes < 10) {minutes = "0"+minutes;}
if (seconds < 10) {seconds = "0"+seconds;}
if (ms < 100) { ms = "0"+ms; }
if (ms < 10) { ms = "0"+ms; }
var time = hours+':'+minutes+':'+seconds+'.'+ms;
return time;
}
I hope this is what you need.
Regards,
Bernhard
Sadly there seems to be a problem
I modified a report that was generated today:
- first the "RanorexReport5.xsl"-file (the report can still be displayed in Waterfox and IE) and
- afterwards the "Standard.html"-file (the report can still be displayed in Waterfox and IE if I add only the function)
In my "standard.html"-file your function is already implemented, so I add only those two lines:
$(document).ready(function ()
{
tb_init('a.thickbox, area.thickbox, input.thickbox'); //pass where to apply thickbox
imgLoader = new Image(); // preload image
imgLoader.src = tb_pathToImage;
var str_durationms = $('.customDuration')[0].innerHTML;
$('.customDuration')[0].innerHTML = str_durationms.toHHMMSSmmm();
});
Can I not modify a report that was generated to test your workaround?