Upgrading to Windows 8.1 causes window.attachEvent("onload", to fail

728 views Asked by At

I have a program that I use to develop web applications called CodeCharge Studio. I have just upgraded to Windows 8.1 from Windows 8 and I now keep getting an error when using the program. The error occurs in a common javascript file and the line is window.attachEvent("onload", CommonOnLoad);

Does anyone know if this event has changed by installing 8.1 or perhaps it is the update to IE11.

1

There are 1 answers

0
eratech On

It appears that Windows 8.0 used IE10 (which used 'attachEvent') and Windows 8.1 uses IE11.

According to Microsoft Internet Explorer Dev Center, IE11 is deprecating the attachEvent that CCS5 generates:

"attachEvent is no longer supported. Starting with Internet Explorer 11, use addEventListener. For info, see Compatibility changes."

Looks like addEventListener is the DOM 3 standards approach which IE 11 is moving towards.

As 'Internet Explorer 5.5 or higher' is a system requirement, I'm assuming that CCS uses some parts of Internet Explorer when it's generating and the code being created is using the 'old' IE styles.

The thread above in the yessoftware forums mention the CCS5 Team are currently working on an update for Windows 8.1 problems (as at 25 Oct 2013)

UPDATED: 30 Oct - update CCS 5.1.1.18990 available, including Win 8.1 fix (http://support.yessoftware.com/updates.asp)