Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900