Dear Oren, Did you have a look at HtmlUnit?
Yours, Ahmed ----- Original Message ---- From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, September 2, 2008 11:34:56 AM Subject: Importing document and window from client browser to Rhino Hello, I am trying to use Rhino as a proxy between a browser and an ad- server, to be able to examine the ad code before outputting to the browser (for example, to prevent showing adult content ads, and there can be of course more reasons). So in the site, instead of calling <script src="ad-server-delivery"... I call <script src="rhino-proxy"... when "rhino-proxy" is a script that executes a Rhino shell, that calls the original "ad-server- delivery". The problem is, that the ad-server usually delivers some html that contains more <script> tags, and these in turn need several things from the browser, like window.location, document.write, cookies and whatnot... I am beginning to think that what I'm trying to do is impossible, because I need the whole original browser environment in the Rhino shell. I tried using John Resig's env.js, but it cannot parse the reponse html, and it does not fully create the document and window of the original browser. Any thoughts? Oren _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
