Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

Interpreting Javascript code

 [1/2] from: gchillemi::aliceposta::it at: 2-May-2006 10:29

Hello, I need to interpret a page which returns a page with javascript code and a pointer to a page full of javascript. Is there a way to decode this page to its html equivalent ? Giuseppe Chillemi =A0

 [2/2] from: pwawood::gmail at: 2-May-2006 17:00

Giuseppe It is likely that the JavaScript interacts dynamically with the page as it is evaluated by the browser rather than generate HTML. So the JavaScript will only work in a browser environment. If the JavaScript is simply writing out html statements, you could call the Rhino interpreter ( from Rebol and capture the output. You would need to change all the document.write(args); to print(args); in the JavaScript before evaluating it. (Being written in Java Rhino takes a long time to load and isn't very fast.) Regards Peter On Tuesday, May 2, 2006, at 16:29 Asia/Kuala_Lumpur, Giuseppe Chillemi wrote: