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
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
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 :)
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
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
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?
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
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
@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
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
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
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,
RumenProgress Telerik