From: "ilpuccio.febo@..." Date: 2008-01-04T19:14:58+09:00 Subject: Re: calling a javascript function with Mechanize On Jan 3, 12:23 pm, Jano Svitok wrote: > On Jan 3, 2008 9:24 AM, Kamal Fariz wrote: > > > > There is a function in javascript > > > > snip > > > > I think this function is not getting called so I am not able to get > > > the expected data. I want to call this function with Mechanize. > > > Mechanize can't evaluate javascript. The creator of Mechanize, Aaron > > Patterson, is working on a new project called RKelly which has the > > goal of being able to evaluate Javascript in Ruby. > > > Until then, your only solution is to use Selenium or Watir to control > > an actual browser. Take a look here: http://code.google.com/p/ruby-spidermonkey/ would be very interesting binding javascript engine directely in ruby. > IIRC scrubyt uses firewatir for similar cases, so you may have better > luck using that. (http://scrubyt.org/) Can you point me on that kind of example, plz? -- Ra