Unable to page.replace_html from rjs

I am having problems updating a div defined in a partial using both
Element.update and page.replace_html in an rjs. I can put a
link_to_remote in the partial using an :update, and the div updates
fine. Does anyone have any idea why this might be happening?

In the partial:

. .
. (if a link_to_remote is here it works) .

In the rjs:
page.replace_html “question_#{question_id}_error”, “foobar”

Thanks!

Bryce B. wrote:

.
(if a link_to_remote is here it works)
.

In the rjs:
page.replace_html “question_#{question_id}_error”, “foobar”

Thanks!

Have you checked with Firebug (you are using Firebug?) what is being
returned by the RJS, I assume

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs