# RJS error:TypeError: arrow is null

**URL:** <https://www.ruby-forum.com/t/rjs-error-arrow-is-null/184356>\
**Category:** Rails\
**Created:** [March 1, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/rjs-error-arrow-is-null/184356 "2010-03-01T12:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [March 1, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/rjs-error-arrow-is-null/184356/1 "2010-03-01T12:31:58Z")

</div>

when i tried to click a button called option uit is showing a pop up  
with error “RJS error:TypeError: arrow is null”

when i click ok then it shows what is given below.pls help me

crm.flick(“empty”, “toggle”);  
crm.hide\_form(“create\_account”);  
crm.flip\_form(“options”);  
$(“options”).update("

\n \<div class=“close” onclick=“new  
Ajax.Request(’/accounts/options’, {asynchronous:true, evalScripts:true,  
method:‘get’, parameters:{ cancel: true }})”  
onmouseout=“this.style.background=‘lightblue’”  
onmouseover=“this.style.background=‘lightsalmon’” title=“Close  
form”\>x\n \<input id=“account\_user\_id”  
name=“account[user\_id]” type=“hidden” value=“2” /\>\n Sort  
accounts by \<a href="#" id=“sort\_by”\>date created.\n Show \<a  
href="#" id=“per\_page”\>20 accounts per page using \<a href="#"  
id=“outline”\>long format.\n

\n\n\n new  
crm.Menu({\n trigger : “sort\_by”,\n fade : 0.5,\n  
appear : 0.5,\n menu\_items: [ { name: “Name”, on\_select:  
function() {if ($(‘sort\_by’).innerHTML != ‘name’) { new  
Ajax.Request(’/accounts/redraw’, {asynchronous:true, evalScripts:true,  
onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘sort\_by’).update(‘name’);  
$(‘loading’).show()}, parameters:{ sort\_by: ‘name’ }}); }}},{ name:  
“Date Created”, on\_select: function() {if ($(‘sort\_by’).innerHTML !=  
‘date created’) { new Ajax.Request(’/accounts/redraw’,  
{asynchronous:true, evalScripts:true,  
onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘sort\_by’).update(‘date created’);  
$(‘loading’).show()}, parameters:{ sort\_by: ‘created\_at’ }}); }}},{  
name: “Date Updated”, on\_select: function() {if  
($(‘sort\_by’).innerHTML != ‘date updated’) { new  
Ajax.Request(’/accounts/redraw’, {asynchronous:true, evalScripts:true,  
onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘sort\_by’).update(‘date updated’);  
$(‘loading’).show()}, parameters:{ sort\_by: ‘updated\_at’ }}); }}} ]\n  
});\n new crm.Menu({\n trigger : “per\_page”,\n fade :  
0.5,\n appear : 0.5,\n width : 50,\n menu\_items: [ {  
name: “10”, on\_select: function() { if ($(‘per\_page’).innerHTML !=  
‘10’) { new Ajax.Request(’/accounts/redraw’, {asynchronous:true,  
evalScripts:true, onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘per\_page’).update(‘10’);  
$(‘loading’).show()}, parameters:{ per\_page: ‘10’ }}); } } },{ name:  
“20”, on\_select: function() { if ($(‘per\_page’).innerHTML != ‘20’) {  
new Ajax.Request(’/accounts/redraw’, {asynchronous:true,  
evalScripts:true, onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘per\_page’).update(‘20’);  
$(‘loading’).show()}, parameters:{ per\_page: ‘20’ }}); } } },{ name:  
“30”, on\_select: function() { if ($(‘per\_page’).innerHTML != ‘30’) {  
new Ajax.Request(’/accounts/redraw’, {asynchronous:true,  
evalScripts:true, onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘per\_page’).update(‘30’);  
$(‘loading’).show()}, parameters:{ per\_page: ‘30’ }}); } } },{ name:  
“50”, on\_select: function() { if ($(‘per\_page’).innerHTML != ‘50’) {  
new Ajax.Request(’/accounts/redraw’, {asynchronous:true,  
evalScripts:true, onComplete:function(request){$(‘loading’).hide()},  
onLoading:function(request){$(‘per\_page’).update(‘50’); $(‘loading’).sh

---

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [March 1, 2010, 1:43pm UTC](https://www.ruby-forum.com/t/rjs-error-arrow-is-null/184356/2 "2010-03-01T13:43:26Z")

</div>

On Mar 1, 11:31 am, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> when i tried to click a button called option uit is showing a pop up  
> with error “RJS error:TypeError: arrow is null”

Hard to tell for sure from this, but I’d guess that the RJS is trying  
to manipulate a page element with id arrow but there isn’t anything on  
the page with that ID.

Fred
