BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
i'm migrating an MVC 5 app to asp.net core. in mvc5, I was told that I need to call ej.widget.init in my AJAX handler in order to activate the controls. For example:
function onChange(args) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
$("#homeContent").html(this.responseText);
ej.widget.init($("#homeContent")); // Initiate control rendering
}
};
xhttp.open("POST", "/Home/Date", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("d=" + args.value);
I'm assuming that this has changed somewhat for Core - as all I get on the page after the AJAX is an empty rectangle where the control should have been. What's the proper way to do this in asp.net core?