3.2.0

AW.Formats.Date Problem in IE

I have the following demo code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>
 <head>
  <title>ActiveWidgets in IE</title>
  <link href="runtime/styles/xp/aw.css" rel="stylesheet" type="text/css" ></link>
  <style type="text/css">
#frame .aw-column-0 {width:60px}
#frame .aw-column-1 {width:100px}
#frame .aw-column-2 {width:160px}
  </style>
  <script src="runtime/lib/aw.js" type="text/javascript"></script>
  <script type="text/javascript">

var myCells = [
 ["MSFT", "32,187.000", new Date(1215645046900)],
 ["ORCL", "9,519.000", new Date(1215640346900)],
];

var obj = null;
window.onload=Load;

function Load()
{
  obj = new AW.UI.Grid;
  obj.setId("frame");

  obj.setCellData(myCells);
  obj.setColumnCount(3);
  obj.setRowCount(2);
  var date = new AW.Formats.Date;
  date.setDataFormat("default"); 
  date.setTextFormat("dd.mm.yyyy hh:mm:ss");
  obj.setCellFormat(date, 2);
  obj.refresh();
}
  </script>
 </head>
 <body>
  <div id="frame">
  </div>
 </body>
</html>


In Firefox, the Date Collumn is shown correctly, but in IE it is shown "#ERR". Is this a bug or am I doing something wrong?

It happens with Version 2.0.2 (licenced) and 2.5.2 (trial).

Thanks
Roland
Roland
July 10,
The date formatting object expects a string (not a Date class) in the format which is understood by javascript Date.parse() method or in ISO8601 or RFC822 formats.

http://www.activewidgets.com/aw.formats.date/setdataformat.html
Alex (ActiveWidgets)
July 15,

This topic is archived.

See also:


Back to support forum