cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: javascript

From: Doug McNutt <douglist_at_macnauchtan.com>
Date: Wed, 22 Mar 2006 10:17:24 -0700

In Mac OS neXt one can use AppleScript to ask Safari to "do" a Javascript.

> tell application "Safari"
> (do JavaScript "document.readyState" in document 1 of window id winID)
> end tell

It's likely that other browsers have the same kind of capability to run their Javascript engines when asked with some kind of interprocess request. Whether it's worthwhile here is another question unless you're just trying to figure out what the Javascript does so you can emulate it in, say, perl.

-- 
--> From the U S of A, the only socialist country that refuses to admit it. <--
Received on 2006-03-22