Hi Chip,
A more developed and documented version is here:
www.empowermentzone.com/HomerJax.zip

Jamal

-----Original Message-----
From: Scripting 
[mailto:scripting-bounces+jamal.mazrui=fcc....@lists.window-eyes.com] On Behalf 
Of Chip Orange via Scripting
Sent: Friday, August 21, 2015 9:47 AM
To: Window-Eyes Scripting List <scripting@lists.window-eyes.com>
Subject: use of HomerJS

Hi all,

At one time I got a copy of a java script named HomerJS (written by Jamal 
Mazrui).  It's not really documented, and so I'm not sure if he ever published 
it, or if he included it with homer, or if he just sent me a copy.  I can't 
find any documentation or examples.

It is supposed to let you call the java script Eval() function from VBScript; 
however, every thing I've tried has failed.  The java script which needs to be 
running in order for this to be used is placed below; I would appreciate it if 
anyone here who knows java script could take a look and see if this (as 
written) can even work, and if so give me a VBScript example showing how to use 
it, or tell me it has a problem so that I'll stop!

(I need this because I need to interface with a RESTful app on the web which 
only returns JSON results), and I need to do so using VBScript).

Thanks.

Chip

function HomerJS() {
this.Eval = Eval
} // HomerJS constructor

function Eval(sText) {
var v

try {
v = eval(sText)
}
catch (e) {
v = "undefined"
}
return v
} // Eval method

ClientInformation.ScriptName = "HomerJS"
ClientInformation.ScriptVersion = "1.1"
ClientInformation.ScriptDescription = "Access the eval function of JScript at 
runtime."
ClientInformation.ScriptHelp = "HomerJS is a shared object that provides access 
to the eval function of JScript at runtime."

SharedObjects.Register("org.NonvisualDevelopment.HomerJS", new HomerJS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachments/20150821/b478923d/attachment.htm>
_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/jamal.mazrui%40fcc.gov.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

Reply via email to