Hi Alex, are you launching MoI by double clicking on a file or just launching it all by itself?
@Max - when MoI is launched and given a file to open, the file will be opened before startup scripts run and the pieces of the sidepane that holds the current filename will be different and so will yield a different length. So maybe get the length of the id="MiddleBody" element that won't include the current filename, or look at the SidePane.htm file directly instead of the dynamic HTML content...
- Michael
|