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
|
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?
|
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.
|
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.aspxOnce we have that we should be able to look into it and tell you what's wrong.
|