How would I write code in Java to read a html page from the internet and execute javascript within it?

Wednesday, November 11th, 2009

I need to connect to a web site, download the home page, then search for a particular link within.

I have achieved this, however the link I require is dynamically generated when the page loads using javascript, so my html parser in Java cannot see it.

If anyone knows how to load a HTML file and execute the javascript in Java, please let me know

Try to analyze the javascript which loads the link, maybe you can find a way of getting the link without running the actual script.

(I do not know how to run javascript in Java nor if its even possible)

Technorati Tags: , , , , , , , , , , , ,

What is the html code to display slide out text?

Friday, November 6th, 2009

In some sites i have seen, where ever the user scrolls(whether up or down) a box with text or image also scrolls with it… Can anyone tell me the html code to do it in my site?

I believe its actually Java Scripting within html code that enables this effect. Click this link —> http://javascript.internet.com/image-effects/menu-sliding-image.html

It has the sript all written out. Cheers!

Technorati Tags: , , , , , , , , ,