Please help,
How can one post data to a custom resource handler using Ajax?
I'm trying to capture posted data from an Ajax call in rendered HTML.jQuery script on a EO.WebBrowser control, where I am using a custom resource handler.
My custom resource handler follows the sample from here:
https://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspxI have a simple Ajax call as such:
$.ajax
({
url: "sample://MyHandfler/MyApi",
type: "POST",
dataType: "json",
data: JSON.stringify({ Action: "Test" }),
contentType: "application/json; charset=UTF-8"
});
My handler gets called successfully, but the posted data in the "EO.WebBrowser.Request" parameter passed to the overridden "ProcessRequest" function is not getting through.
Its "PostData" data member always has 0 entries (Count = 0).
The source of the POST is an ajax call from the rendered HTML.