title: JavaFX WebView catch post request from javascript
body: <p>I'm experimenting with JavaFX for the first time and I am intrigued by the WebView class.  I would like to be able to use it to locally host a HTML5 site that would essentially be the front end for a desktop application.</p>
  
  <p>My question is, if I make an ajax request from javascript within the webview, is there any way to handle that request with JavaFX?  Part of the application could handle post requests but I'm wondering if there is anything built-in?</p>
  
  <p><strong>-Edit-</strong></p>
  
  <p>My question was originally poorly worded.  What I'm essentially trying to do is use the WebView to create an HTML5 desktop app similar to what QT5 offers.  So when I talk about ajax calls, I mean that I would like to somehow make a bridge between JS and JavaFX.  </p>