I have a C# project which has an embedded WebBrowser control.
The code loads a HTML form into that browser. After the HTML form is completed by a user, they press an OK button.
At that point some JavaScript is executed, which finally passes control to a HTTPS site.
At that time, I receive an error "No Transport".
If however, I run the HTML straight into IE, it works.
Roughly, the java script looks like
$.post("https://somesite/DoSomething/?callback=?", { param1: x})
.done(function (x) {
$('input[id=txtValue]').val(x.Message);
return;
})
.fail(function (jqXHR,textStatus,errorThrown) {
alert(errorThrown);
});
How can I get past the error?
Thanks
What I have tried:
I am assuming it is because of Cross Site Scripting, so I tried setting CORS = true in the java script but no success.