Grote prutser schreef op vrijdag 10 november 2006 @ 10:13:
Het is geen scriptfout waardoor IE stopt? Dit kun je linksonderin zien. Probeer eens een alert('...'); helemaal bovenin je JS bestand te zetten? Als dat niet werkt, zou je dan wat code kunnen plaatsen waarin de script tag staat, of een online voorbeeld, want dit hoort gewoon te werken volgens mij

. type="text/javascript" is het, en dat is idd beter dan language="javascript"
Als ik een alert erin zet, zie ik die wel in Firefox maar niet in IE - hieronder de inhoud van de "js" file voor het geval dat er iets mee te maken zou hebben
alert('js loaded');
// Declare constants
const conHidden=1;
const conNoPermission=2;
const conProtected=3;
const conDeleteOnly=4;
const conInsert=5;
const conOverwrite=6;
// Declare objects
function columnObject() {
this.CharactersAllowed='';
this.Class='';
this.EditType='';
this.SubfieldId=0;
this.SubfieldLevel=0;
this.MaxLength='';
this.SubstitutionChar='';
}
function cellObject() {
this.CharactersAllowed='';
this.Class='';
this.EditType='';
this.Hidden='';
this.Id='';
this.MaxLength='';
this.RelatedUpdateFields=0;
this.RowId='';
this.SubstitutionChar='';
this.Tooltip='';
}
function settingsObject() {
this.SessionId='';
this.CanEdit=0;
this.CanInsertField=0;
this.CanInsertSubfield=0;
this.NumCols=0;
}
// Functions
function sizeArea(cell)
{
text=cell.value.split('\n');
newRows=1;
for (i=0;i<text.length;i++) {
if (text[i].length>=cell.cols) newRows+=Math.floor(text[i].length/cell.cols);
}
if (newRows!=cell.rows) cell.rows=newRows;
}