[Rails] A missing piece in Prototype helpers

Sergei Serdyuk sserdyuk at hotmail.com
Sat Apr 1 03:10:46 GMT 2006


Hi,

I wanted to use select helper to provide a parameter for a function call 
and could not make it work.

I wanted to do this:

page.call 'Field.activate', page.select('#customer_form .edit-form 
div.fieldWithErrors input').first

and ended up writing pure Javascript:

	page << 'Field.activate($$("#customer_form .edit-form 
div.fieldWithErrors input").first());'


If someone can figure out the way to get it to work without << operator, 
please post.

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list