0

i have a problem with [C#]WebBrowser.

https://i.stack.imgur.com/LiCAd.png

My app navigation to file index.html. This is content of file index.html

<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
$.ajax({
    url:'http://192.168.0.3:8000/device/ping',
    type:'POST',
    success:function(data){
        alert(data);
    }
});
</script> 

It only working width chrome,IE...

https://i.stack.imgur.com/1CpIn.png

But it not working in WebBrowser

Please help me :) Thank all.

Dungz Nguyen
  • 19
  • 1
  • 8
  • When you say "WebBrowser", are you referring to the Winform control? – Crono Mar 17 '15 at 17:05
  • http://stackoverflow.com/questions/415926/how-to-carry-out-cross-domain-request-in-a-webbrowser-control – tbddeveloper Mar 17 '15 at 17:10
  • The webbrowser control using the IE as its rendering engine. there are some options you may need to set for the web browser control to interpret the javascripting side of things correctly. you may need to set the IsScriptEnabled property to true – Ahmed ilyas Mar 17 '15 at 17:10
  • This could help [http://stackoverflow.com/questions/6470842/how-do-i-display-a-popup-from-a-webbrowser-in-another-window-i-created] you. – codingninja Mar 17 '15 at 17:24

1 Answers1

0

I think it is not possible because of security reasons.

Orkun Bekar
  • 1,447
  • 1
  • 15
  • 36