Welcome Guest Search | Active Topics | Sign In | Register

Intercept page resource calls Options
Dragos
Posted: Friday, June 3, 2016 4:53:03 AM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
Hello,

I need to "intercept" a resource call (like a image/javascript/css) - preferable before the connection with the server is done - and provide my own response. I know I can do something for js/css/iframe with BeforeRequest/BeforeLoad events, but there is no way I can provide my own content.

Can you advise?

Thanks!
eo_support
Posted: Friday, June 3, 2016 8:58:54 AM
Rank: Administration
Groups: Administration

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

You would do that with a custom resource handler:

http://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspx

Thanks!
Dragos
Posted: Saturday, June 4, 2016 3:16:57 PM
Rank: Advanced Member
Groups: Member

Joined: 6/3/2016
Posts: 32
It works like a charm! 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.