Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser ResourceHandler sending string to iFrame Options
Shaffin
Posted: Tuesday, February 27, 2018 12:03:25 PM
Rank: Newbie
Groups: Member

Joined: 12/26/2017
Posts: 2
Hi,

How can we send html string to an iframe using the ResourceHandler.

In my page i have something like :
<iframe src="sample://getData"></iframe>

Webview form :
public override void ProcessRequest(Request request, Response response) {
if (request.Url.StartsWith("sample://", StringComparison.OrdinalIgnoreCase)) {
response.ContentType = "text/html";
response.StatusCode = 200;
response.Write("my html");
response.End();
}
}

Thanks


eo_support
Posted: Tuesday, February 27, 2018 1:40:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Your code looks fine. Are you saying that this works for the main document but does not work for iframe?
Shaffin
Posted: Thursday, March 1, 2018 9:01:47 AM
Rank: Newbie
Groups: Member

Joined: 12/26/2017
Posts: 2
No it does not work even normaly.

The only exemple we have is based in binary output and we need to send string data and we also need to do it in an Iframe

Thanks.

eo_support
Posted: Thursday, March 1, 2018 1:18:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
There isn't much we can do when pretty much all the information we have is that something does not work. You can try to isolate the problem into a test project and send the test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that we should be able to look into it and tell you what's wrong.


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.