# Render :partial in RJS problem

**URL:** <https://www.ruby-forum.com/t/render-partial-in-rjs-problem/108860>\
**Category:** IT\
**Created:** [July 8, 2007, 7:39am UTC](https://www.ruby-forum.com/t/render-partial-in-rjs-problem/108860 "2007-07-08T07:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [July 8, 2007, 7:39am UTC](https://www.ruby-forum.com/t/render-partial-in-rjs-problem/108860/1 "2007-07-08T07:39:09Z")

</div>

Hello, i am trying to update a :partial in rjs like this:

```
render :update do |p|
  p.visual_effect :fade, "info"
  p.replace_html "info", :partial => 'prod_id'
  p.visual_effect :highlight , "info"
end

```

but it present this error:

try { Element.update(“info”, "  
\n  
\n  
\n  
\n  
\n  
\n\n\n  
\n\n  
\n  
\n\n\n  
\n\nBack\n  
"); new Effect.Highlight(“info”,{}); } catch (e) { alert(‘RJS  
error:\n\n’ + e.toString()); alert(‘Element.update(“info”, "  
\n  
\n  
\n  
\n  
\n  
\n\n\n  
\n\n  
\n  
\n  
\n\n\n  
\nEdgar test  
\n  
\n  
\n \n  
\n  
\n \n  
\n  
\n  
");\nnew Effect.Highlight(“info”,{});’); throw e }

If i render :partial alone, it cames good, but i want to add some  
effects, how could i do that?

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [July 14, 2007, 10:45am UTC](https://www.ruby-forum.com/t/render-partial-in-rjs-problem/108860/2 "2007-07-14T10:45:49Z")

</div>

Check whether there is an “:update =\>” atatement in the the  
submit\_to\_remote tag. If so delete it. This will remove the error.  
thanks  
Chris
