Reading Javascript - Is it possible?

Help anyone,

I have been trying to figure out how to collect hyperlink destinations through java and that has been pretty succesful so far. But I can only get hyper links from HTML, and not JavaScript.

Is it even possible to read JavaScript from Java Programing or have I hit a dead end. If you could can you please help me out?

Thanks

[360 byte] By [Chrisdigitya] at [2007-11-27 3:33:19]
# 1

javascript generates dynamic output like any other language, so unless you can execute it (which requires a browser environment), you are not going to get any valid information from it.

Still I believe the google spider can do it, so there must be some way somewhere that probably costs a lot of money to use.

gimbal2a at 2007-7-12 8:36:24 > top of Java-index,Java Essentials,Java Programming...
# 2

Javascript is run on the client side so it is possible to parse the HTML code for javascript within a Java program.

I am not aware if there is some kind of open source solution but I know it can be done and most certainly can be done for the right price if you are looking to buy software.

maple_shafta at 2007-7-12 8:36:24 > top of Java-index,Java Essentials,Java Programming...
# 3
http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html
hunter9000a at 2007-7-12 8:36:24 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks for the package but i need to know what method inside the package to use and how to use them. Thanks.
Chrisdigitya at 2007-7-12 8:36:24 > top of Java-index,Java Essentials,Java Programming...