# RJS Error: TypeError: while using active scaffold

**URL:** <https://www.ruby-forum.com/t/rjs-error-typeerror-while-using-active-scaffold/167769>\
**Category:** Rails\
**Created:** [May 12, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/rjs-error-typeerror-while-using-active-scaffold/167769 "2009-05-12T12:22:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Post date:** [May 12, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/rjs-error-typeerror-while-using-active-scaffold/167769/1 "2009-05-12T12:22:32Z")

</div>

Hi,

I get an unexpected error because i havent do any chnages in any  
javascript files, after installing active scaffold. Before 1-2 days my  
application is working fine but from yesterday i got the error for RJS  
as below while i tried for show action.

RJS error:  
TypeError: $(“#console\_\_private\_messages-messages”) is null

$(“#console\_\_private\_messages-messages”).html(“\n \n\n \n\n \n\n”);

And while i tried to remove the record then i got error as per below…

RJS error:  
TypeError: $(“#console\_\_complaints-list-27-row”) is null

$(‘console\_\_complaints-destroy-27-link’).action\_link.close\_previous\_adapter();  
$(“#console\_\_complaints-list-27-row”).remove();  
ActiveScaffold.reload\_if\_empty(‘console\_\_complaints-tbody’,‘/console/complaints/update\_table?page=1’);  
ActiveScaffold.stripe(‘console\_\_complaints-tbody’);  
ActiveScaffold.decrement\_record\_count(‘console\_\_complaints-active-scaffold’);  
$(“#console\_\_complaints-messages”).html(“\n \n\n \n\n \n\n”);

There is no errors in the log. Any Suggestions?  
Need more info?

Thanks,  
Chirag Shah  
Software Engineer

> **[Web Professional](http://blogofchirag.blogspot.com/)**
>
> Working with Ruby on Rails since july 2007. RoR web application development along with other technologies like LAMP.The reason to love programming with RoR is, it helps keep code simple, clean and nice… 
> Also working with php/cakephp etc.
