Welcome Guest Search | Active Topics | Sign In | Register

clear a custom resource handler Options
roger reynolds
Posted: Thursday, September 24, 2015 1:54:55 PM
Rank: Advanced Member
Groups: Member

Joined: 3/11/2014
Posts: 57
I have created a custom ResourceHandler and registered it on a WebView, using the RegisterResourceHandler method.

When i am done with the WebView object, how can i remove the resource handler? I may use that same web view object later on, in a different context, in which the resource handler is not appropriate.

Like, i add FileDialog event handlers when setting up the web view, and i remove them when finished with the web view.

Shouldn't i be doing the same for resource handlers?

Similar question for js extension functions added with RegisterJSExtensionFunction. Shouldn't i be able to unregister those somehow?

Thanks
roger
eo_support
Posted: Thursday, September 24, 2015 2:06:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

There is no way to unregister a resource handler in the current build. However your scenario present a very valid case to have one. So we will add an UnregisterResourceHandler method in our next build.

Thanks!
roger reynolds
Posted: Friday, September 25, 2015 6:02:22 PM
Rank: Advanced Member
Groups: Member

Joined: 3/11/2014
Posts: 57
Great. Any idea when that will be?
Thanks
eo_support
Posted: Monday, October 5, 2015 8:50:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

This is just to let you know that we have posted a new build that added this method. You can download the new build from our download page.

Thanks!
roger reynolds
Posted: Tuesday, October 6, 2015 11:36:37 AM
Rank: Advanced Member
Groups: Member

Joined: 3/11/2014
Posts: 57
That's great thanks.
But you didn't provide a corresponding cleanup method for RegisterJSExtensionFunction, which was also mentioned in my previous post.
eo_support
Posted: Tuesday, October 6, 2015 11:44:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

You should be able to call RegisterJSExtensionFunction(functionName, null) to unregister a JS extension function.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.