Hi, i have been searching for a solution for a day now and no clue even after tons of googling...
I need to give the user to click on a link and the browser and the user is able to preview the html content in the choosen browser. This means that the user may not have that browser installed on his machine but through my application, he can view in any browser for which i have provided an option.
I have seen this in a product i got a demo recently.
I think its some sort of browser engine or API but have no clue how to do it. Its very essential for my next version of application.
I don't know of such a API but it doesn't mean one does not exist. Its hard to say though how you encompass other browser engines, *especially* proprietary ones like IE, into your code without actually invoking them.
Good luck either way. My guess is the demo you saw was a simulation of some kind based on published standards.
Anyway: IE's rendering engine is an ActiveX control -- it's designed to plug into other applications. I suspect that other Windows browsers adopt this same protocol, if possible, so they can replace IE. To use this from Java, you'd need to use JNI and a healthy helping of Windows programming know-how, or you'd have to buy one of the commercial Win32-API-for-Java tools. But in any event, this is mostly a Windows programming thing, not a Java thing per se.
Originally posted by Ernest Friedman-Hill: This is mostly a Windows programming thing, not a Java thing per se.
The different browsers api or 'something' would need to be present on the server so that the client using HTTP can invoke the different browser api to generate the preview. Otherwise how will the client who may have only one browser installed preview for 4 others?