aspose file tools*
The moose likes Java in General and the fly likes How can I read values updated by javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How can I read values updated by javascript" Watch "How can I read values updated by javascript" New topic
Author

How can I read values updated by javascript

Anna Nimus
Greenhorn

Joined: Nov 05, 2008
Posts: 4
Hi!

I want to parse an html page using org.w3c.dom package. Let it be http://www.qypedeals.de/. The page has a counter updated by JS So if I try to get a value of



I always get 0. Is there any possibility to get that value?

Thanks in advance!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61662
    
  67

Obviously the DOM will be as defined by the static HTML. Any changes made to the DOM by JavaScript cannot be determined just by parsing the HTML.

I do not know if there are Java components (perhaps defined by Swing?) that can load and execute the script. But simple parsing won't do.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I read values updated by javascript