"dnn.dom is undefined" or "'attachEvent' of undefined"
I would get this "TypeError: dnn.dom is undefined" error and see it in using firebug in the dotnetnuke 7 (dnn) website on a page. In the page I would later get "Uncaught TypeError: Cannot read property 'attachEvent' of undefined" after clicking an html button that would run some javascript. What is strange is that I am not missing an jquery files either, the "Net" section shows that I properly get all of them.
It boiled down to the site being 4.0 and there being a 3.5 reference in the ascx module. Once I commented out the line below that error disappeared.
<!--<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>-->
Comments
Post a Comment