js call with rails generated attributes (item ids)

that string is just a string (ie it's not put through erb)
"appear('#{dom_id(person.id)}box','#{dom_id(person.id)')"

should do the trick

Fred

"appear('#{dom_id(person.id)}box','#{dom_id(person.id)')"

should do the trick

thanx a lot.

Frederick Cheung wrote:

Use firebug to see what's going on (eg set a breakpoint in your appear function).

Fred