Subj : [spidermonkey]How to: get another variable values from JS? To : netscape.public.mozilla.jseng From : laser Date : Wed Jun 29 2005 02:32 am Hi, guys, need you help. I have to write a simple program to get some configure files from HTTP server. I simulate the HTTP package using socket and send it to server, and then, I received HTTP package from server, which has JS and html. So I think I must use JS engine to excute the JS insided HTTP paxkage and then get URLs and Cookies which I need to simulate next HTTP package. Any suggestions? I also have another question, when I use spidermonkey to excute JS like: var ln = 5; var ln1; ln1 = ln*2; I can get the values of variable ln1 by using API JS_EvaluateScript and JSVAL_TO_INT, but how can I get the values of variable ln? Thank you, any suggestion is welcomed. .