This is a migrated thread and some comments may be shown as answers.

Unable to get property 'handleEvent' of undefined or null reference

12 Answers 155 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt Smith
Top achievements
Rank 1
Matt Smith asked on 03 Jun 2017, 06:28 PM

I am continuously receiving this error within my pages (through the javascript console)

SCRIPT5007: Unable to get property 'handleEvent' of undefined or null reference

Telerik.Web.UI.WebResource.axd (647,33)

It is within this chunk of code

}}if($telerik.useDetachEvent(c)){c.detachEvent("on"+d,a);
}else{if(c.removeEventListener)

{c.removeEventListener(d,a,false);    // <<<< 
} //<<<<

}b.splice(f,1);

Me thinks something is wrong with the Telerik.Web.UI.WebResource.axd resource handler.

12 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Jun 2017, 08:56 AM
Hello,

Do you experience this error in Edge 40? We are aware of such an issue and it as been already logged into our backlog. You can track the progress of the item here: https://feedback.telerik.com/Project/108/Feedback/Details/217572.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Michael
Top achievements
Rank 1
answered on 29 Sep 2017, 10:43 AM

I have the same problem...

I have a RadNotification with a radbutton and a serverside handler that sets VisibleOnPageLoad = false

But the script-error (4 identical errors actually) apparently happens right after the button is clicked but before the postback reaches the serverside eventhandler.

And the RadNotification is visible after the postback.

Chrome and Firefox is not giving any error, but the problem/symptom is the same.

And (of course) I have no problem in my development environment.

 

Hope you can use the extra info :)

 

0
Rumen
Telerik team
answered on 04 Oct 2017, 09:09 AM
Hi Michael,

I tried to reproduce the error but to no avail: in IE, Edge, Chrome and Firefox the controls work properly on my end.

Can you please test the attached project and modify it so that it starts to showcase the error?

Thank you!

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Rumen
Telerik team
answered on 04 Oct 2017, 09:13 AM
Just a quick follow-up.

I just managed to reproduce the issue in Edge 40. I will add the new information to the https://feedback.telerik.com/Project/108/Feedback/Details/217572  item and we will fix it for the upcoming SP1 release. 

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Michael
Top achievements
Rank 1
answered on 04 Oct 2017, 09:40 AM

Hi Rumen

 

I'm afraid it's worse than that...

I've discovered that the login (asp:Login) doesn't work either, so I guess it's a more general problem.

But the strangest thing happened...

In my desperation I enabled Trace in the web.config (local only) and immediately both login and RadNotification worked again???

    <trace enabled="true" localOnly="true" pageOutput="true" mostRecent="true" requestLimit="200" />

But the error remains (you can see for yourself: https://reklametryk-webshop.dk/).

Oh and by the way, I've testet with IE, Edge, Firefox and Chrome and the problem is the same, but only Edge shows the script-error.

So now I have to leave the trace enabled :(

 

Any ideas?

 

 

0
Rumen
Telerik team
answered on 04 Oct 2017, 11:14 AM
Hi Michael,

We have a fix for the JS error in Edge and if you open a support ticket I can provide it for testing purposes until the R3 2017 SP1 goes out officially.

When opening a ticket please refer to the current forum thread.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kzimny
Top achievements
Rank 1
answered on 04 Oct 2017, 12:53 PM

Hi, I'm having exactly the same problem. My support ticket with the number 1130714 has been unfortunately closed the Telerik Admin, don't know why... The error message is the same as in Michael's post:

SCRIPT5007: Unable to get property 'handleEvent' of undefined or null reference
Telerik.Web.UI.WebResource.axd (628,33)

Did you found a solution?

Kind regards,

Christopher

0
Rumen
Telerik team
answered on 04 Oct 2017, 02:08 PM
@Christopher: I attached the hotfix to your ticket 1130714. Please, test it and let me know how the fix works.

@Michael: I opened a new ticket 1133583 for you and attached the hotfix there too.

Guys, we respect your time and will be glad if you test the hotfix and share your feedback on it with us.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kzimny
Top achievements
Rank 1
answered on 05 Oct 2017, 06:33 AM

The fix works fine without CDN support, as soon as CDN is enabled I get HTTP 404 error messages.

https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2017.3.1004 ======>>>>> there are files for 2017.3.1004 hotfix in the cloud.

I found the information that, CDN is not supported for hotfixes. When do you plan to release the hotfix?

Kind regards,
Christopher

0
Rumen
Telerik team
answered on 05 Oct 2017, 11:05 AM
Hi there,

After additional research I can propose a better solution that does not require to update the Telerik.Web.UI.dll.

You can workaround the issue until a hotfix is release by adding the following JavaScript code below the controls declarations or at the end of the page:

<telerik:RadNotification ID="RadNotification1" runat="server" Text="test"></telerik:RadNotification>
<telerik:RadButton ID="RadButton1" runat="server" Text="Show Notification" OnClick="RadButton1_Click"></telerik:RadButton>
<script>
    $telerik._removeHandler = function (element, eventName, handler) {
        var browserHandler = null;
        var cache = element._events[eventName] || [];
 
        for (var i = 0, l = cache.length; i < l; i++)
            if (cache[i].handler === handler) {
                browserHandler = cache[i].browserHandler;
                break;
            }
 
        if ($telerik.useDetachEvent(element))
            element.detachEvent('on' + eventName, browserHandler);
        else if (element.removeEventListener) {
            try {
                element.removeEventListener(eventName, browserHandler, false);
            catch (e) {
            }
        }
 
        cache.splice(i, 1);
    }
</script>

This code will be loaded after the CDN scripts and overrides them.

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kzimny
Top achievements
Rank 1
answered on 05 Oct 2017, 01:26 PM
Indeed, it's better than update the dll files. thanks.
0
Rumen
Telerik team
answered on 05 Oct 2017, 02:04 PM

You are welcome, Christopher! 

If you face this error in other scenarios, please let us know so that we can handle them too.

Best regards,

Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Matt Smith
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Michael
Top achievements
Rank 1
kzimny
Top achievements
Rank 1
Share this question
or