I know, tiles.js was written for newer Browsers... unfortunately, there a still IE7 user out there...
When using tiles.js with IE7, the tiles in the grid collapse to tiny tiles without any layout.
I searched through the code of Template.js and found this code block:
// parse the cells in a single row
for (x = 0, rowLength = row.length; x < rowLength; x++) {
cell = row[x]; // LINE OF INTERERST!
if (cell !== ' ') {
cells[y].push(cell);
}
}
The problem with IE7 is, that it doesn't know what do with square brackets in order to get a character from a string.
I simply changed the line to:
// parse the cells in a single row
for (x = 0, rowLength = row.length; x < rowLength; x++) {
cell = row.charAt(x); // LINE OF INTERERST! - changed.
if (cell !== ' ') {
cells[y].push(cell);
}
}
... and I could bring the joy of tiles.js also to IE7 user! :-)
PS: TILES.JS IS AWESOME! :-)
I know, tiles.js was written for newer Browsers... unfortunately, there a still IE7 user out there...
When using tiles.js with IE7, the tiles in the grid collapse to tiny tiles without any layout.
I searched through the code of Template.js and found this code block:
The problem with IE7 is, that it doesn't know what do with square brackets in order to get a character from a string.
I simply changed the line to:
... and I could bring the joy of tiles.js also to IE7 user! :-)
PS: TILES.JS IS AWESOME! :-)