OK, I think the right method is called evaluateReader and the Reader
parameter is InputStreamReader from the API URLConnection, although now
I'm stuck while evaluating the javascript. In the beginning there are few
lines like
"window.google = windows.google || {};"
from which I get errors like
"ReferenceError: "window" is not defined."
I thought objects like window should be initialized upon calling
initStandardObjects();, but it seems I was probably wrong.
Thanks for your replies,
Garion
Dne Tue, 13 Jul 2010 14:31:43 +0200 Garion <[email protected]> napsal(a):
Hi,
I've tried some basic stuff in Rhino and would like to know if there is
a possibility to call a javascript API. I mean if i would like to use
for example Google Maps JS API, I have to initialize it using
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=set_to_true_or_false"></script>
and after that i can make calls to the API in my own script. Is there
any way to make that in Rhino? Like calling this "src" argument. I
figured out it could be something with Context, although after browsing
available methods i didn't find one that would look useful.
Thanks for your replies,
Garion
--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:
http://www.opera.com/mail/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino