title: How can I get the callback data with WebView2
body: <p>I'm building a WPF application and try to get the ajax callback data with the WebView2 control.</p>
  <p>WebApplication is a simple Login View, and login method code like this:</p>
  <pre><code>$(&quot;#btn&quot;).click(function () {
              $.post(&quot;loginHandler.ashx&quot;,
                  {
                      name: $(&quot;#name&quot;).val(),
                      pwd: $(&quot;#pwd&quot;).val()
                  },
                  function (data, status) {                   
                      var r=JSON.parse(data)
                      alert(r.result);
                  });
          });
  </code></pre>
  <p>the XAML code in wpf is:</p>
  <pre><code>&lt;wv2:WebView2 Name=&quot;webView&quot;  Source=&quot;http://localhost:44372/login.html&quot; /&gt;
  </code></pre>
  <p>Now I use the <strong>CoreWebView2_WebResourceResponseReceived</strong> to get the request and response information, but I can't get the <strong>data</strong> in the callback function...</p>
  <p>After searching around for decent maybe I should use Javascript? Can JS catch another function's callback result?</p>
  <p>Please give me some advise, I'm the first time use to controls...</p>
  <p>(If WebView2 can't do this, may the CefSharp do that?)</p>
  <p>Any assistance is appreciated, THX!</p>