Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...IE11 attachEvent issue?IE11 attachEvent issue?
Previous
 
Next
New Post
1/2/2015 9:54 AM
 

Hi Guys,

We have a DNN 7.3.4 installation (also present in 7.3.2) and we have stumbled on a bug. When we open a page in IE11 we get a JS error that reads attachEvent is undefined (screenshots below). In our installation the error originates in ScriptResource.axd (I think it comes from Telerik).

The same issue appears when you open www.dnnsoftware.com in IE11 what may indicate this is a DNN bug (dnncore.js).

It looks that this error occures because  attachEvent was removed from IE and therfore JS events can't be bound.
I found that the error is kind of mentioned here: https://dnntracker.atlassian.net/browse/DNN-3740 but we still get it after the upgrade to 7.3.4

Do you know if there's anything we could do ourselvs to work around it?

Please let me know if I can help to find a solution.

Thanks,
Lukasz

Screenshots:
https://dl.dropboxusercontent.com/u/7054316/Error-1-img1.jpg
https://dl.dropboxusercontent.com/u/7054316/Error-1-img2.jpg
https://dl.dropboxusercontent.com/u/7054316/Error-2-img1.jpg
https://dl.dropboxusercontent.com/u/7054316/Error-2-img2.jpg

 
New Post
1/2/2015 7:48 PM
 
it was a known and fixed issue so Im not sure why you still see it-I also cant recreate it on dnnsoftware.com (checked F12 tools in IE11) -perhaps it's a cached/corrupted/old version of the script, have you tried pressing CTRL+F5 to force a refresh?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/5/2015 4:57 AM
 

Hi Cathal,

That's interesting.

Yes I did that as one of the first things. I forced the browser to clrear scripts by hitting CTRL + F5, but unfortunatelly that did no difference. The details are below.

I've tried www.dnnsoftware.com on three different computers with the same results.

PC 1 IE11 v 11.0.12 (11.0.9600.17280) on Windows 7 Service Pack 1
PC 2 IE11 v 11.0.15 (11.0.9600.17501) on Windows 7 Service Pack 1
Server IE11 v 11.0.15 (11.0.9600.17501) on Windows Web Server 2008 R2 Service Pack 1

Issiue on www.dnnsoftware.com comes from file dnncore.js and that's the exact code which produces the error:
(sorry for the formatting but this is a compressed/minified file)

function __dnn_Page_ (){if(__dnn_ClientAPIEnabled()){dnn.dom.attachEvent(window,"onscroll",__dnn_bodyscroll)}__dnn_m_bPageLoaded=true}

 

Issue on our website is on a click event. Below are details from Visual Studio on PC 1 IE11 v 11.0.12 (11.0.9600.17280) on Windows 7 Service Pack 1

/* START MicrosoftAjaxWebForms.js */
// (c) 2010 CodePlex Foundation
(...)
if
(Sys.Browser.agent===Sys.Browser.InternetExplorer){var k=document.createElement("a");k.style.display="none";k.attachEvent("onclick",H);k.href=e.content;h._form.parentNode.insertBefore(k,h._form);k.click();k.detachEvent("onclick",H);h._form.parentNode.removeChild(k);

Call stack:
e.prototype._parseDelta [Telerik.Web.UI.WebResource.axd] Line 9 Script
e.prototype._onFormSubmitCompleted [Telerik.Web.UI.WebResource.axd] Line 9 Script
Anonymous function [Telerik.Web.UI.WebResource.axd] Line 3 Script
Anonymous function [Telerik.Web.UI.WebResource.axd] Line 3 Script
d [Telerik.Web.UI.WebResource.axd] Line 3 Script
w.prototype.completed [Telerik.Web.UI.WebResource.axd] Line 3 Script
f._onReadyStateChange [Telerik.Web.UI.WebResource.axd] Line 3 Script

Can you please advise.

Thanks,
Lukasz
 
 
New Post
1/5/2015 10:02 AM
 
ok, i see it now. The issue only shows when a user is not logged in. It is caused by referencing the dnn.dom.attachevent function. This is contained within dnn.js which is not there on an unathenticed page load, but is there when you log in. Its not an IE11 issue, i see the same problem in chrome . It can be fixed by adding some code around the block (a try-catch-finally), as I dont think we want to include an 18kb dnn.js just for a single function. I will log it as an issue at support.dnnsoftware.com

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/5/2015 10:23 AM
 
issue logged to https://dnntracker.atlassian.net/brow... and assigned to 7.4.1

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...IE11 attachEvent issue?IE11 attachEvent issue?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out