Can I use AJAX and JavaScript without a browser?
I supposed to make a desktop 开发者_如何学JAVAapplication (with Java-Swing) which will remotely communicate with server(like Skype) through socket. To do that, can I use AJAX to transfer the data to the server? How can I implement the JavaScript Engine?
Are there any better ways to do this? Any advises?
Ajax means "Making an HTTP Request without leaving the current page". As techniques go, it doesn't really seem applicable.
Rather than implementing a JavaScript engine, then writing something to make an HTTP request in JavaScript … just make the HTTP request directly from Java. You're already using that language.
精彩评论