New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModalPopup - The 'Unable to set property 'actControlType' of undefined or null reference' error occurs in IE10 #17

Closed
savornicesei opened this Issue Mar 15, 2016 · 9 comments

Comments

Projects
None yet
8 participants
@savornicesei
Contributor

savornicesei commented Mar 15, 2016

Hello,

I have a WebForm app. using .NET 4.5 and AjaxControlToolkit 16.1 and in IE10 I get a first NotFound javascript error in ModalPopup.js at line 131:

this._foregroundElement.parentNode.removeChild(this._backgroundElement);

and then an "Unable to set property 'actControlType' of undefined or null reference' at line 180:

this._backgroundElement.dataset.actControlType = "modalPopupBackground";

It works fine in IE Edge, Chrome and Firefox.
Not sure if it counts but the ModalPopupExtender that fails is declared in a TabPanel (complete hierarchy is asp:Content > ajaxToolkit:TabContainer > ajaxToolkit:TabPanel > ContentTemplate > ajaxToolkit:ModalPopupExtender)

savornicesei added a commit to savornicesei/AjaxControlToolkit that referenced this issue Mar 15, 2016

@savornicesei

This comment has been minimized.

Contributor

savornicesei commented Mar 15, 2016

As a workaround for the current 16.1 version of AjaxControlToolkit use html5-dataset.js

@downtime0

This comment has been minimized.

downtime0 commented Mar 15, 2016

@savornicesei , clicking on that link does not work but I love the 404 error. If I copy and paste the text of the link, then it works.

@cluehawk

This comment has been minimized.

cluehawk commented Mar 15, 2016

Confirmed in IE11 - Unable to set property 'actControlType' is a problem here too.
Rears is head when setting the BackgroundCssClass.
Worked fine in AJAXControlToolKit 15.1.4.0

@savornicesei

This comment has been minimized.

Contributor

savornicesei commented Mar 16, 2016

@dparks2 : Thanks. I fixed the link.

@motleydrew

This comment has been minimized.

motleydrew commented May 27, 2016

I'm seeing this as closed, but I do not see the resolution. I attempted to use the html5-dataset.js workaround for IE11 and ATC16.1, but it doesn't work. I'm still getting the, "Unable to set property 'actControlType' of undefined or null reference", error.

One thing to note; it works in IE11 (even without the html5-dataset.js) if I launch it from Visual Studio on my local machine. It fails when I deploy to the web server.

@AlekseyMartynov

This comment has been minimized.

Member

AlekseyMartynov commented May 27, 2016

@motleydrew

I'm seeing this as closed, but I do not see the resolution.

We use the "Closing issues via commit messages" practice. The "Closed" state means that a fix has been merged into the master branch and will be available in the next release of Toolkit. Before that, it's possible to clone or download the Git repository and compile a custom build from source code.

@manuelra

This comment has been minimized.

manuelra commented Jul 8, 2016

@savornicesei
What's the right recipe for using html5-dataset.js? (I tried adding it on script tag to my master page but that did not suffice)

@AlekseyMartynov
I cloned + compiled the repository. And then noticed that the assembly version on this repository is still 15.1.2. Is this correct? does this code match the one for v 16.1?

Thank you

@AlekseyMartynov

This comment has been minimized.

Member

AlekseyMartynov commented Jul 8, 2016

@manuelra
Thanks for bringing our attention. We'll fix that in the context of PR #117

@MikhailTymchukDX MikhailTymchukDX changed the title from ModalPopup - NotFound javascript error on IE10 to ModalPopup - The 'Unable to set property 'actControlType' of undefined or null reference' error occurs in IE10 Aug 1, 2016

@Tagmar2

This comment has been minimized.

Tagmar2 commented Dec 28, 2016

html5-dataset.js works!

My solution:

If Request.Browser.Browser = "IE" Then
            Dim V as string = Request.Browser.Version

            If V= "10.0" OrElse V= "9.0" Then
                ToolkitScriptManager1.Scripts.Add(New ScriptReference("~/Scripts/html5-dataset.js"))
            End If
  End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment