views:

52

answers:

1

can I get the correct data/text that is displayed via AJAX using mechanize in ruby?

Or is there any other scripting gem that would allow me to do so?

+4  A: 

Mechanized cannot read data displayed by JavaScript, because it does not implement a JavaScript engine (in other words, it can't run it). You'll need a browser to do that, or a program that automates a browser to do it for you. WATIR is one such program.

Johannes Gorset
FRKT: I thought that it would be like that :-( but I cannot run browser/WATIR on my linode.com - I guess - or can I?
Radek
@Radek: I don't know, sorry - you'll have to get in touch with linode and ask them. :-)
Johannes Gorset
@FRKT: I will or even better I am going to create new question here. Thank you for your help.
Radek