“arguments” has special meaning in javascript. I would recommend against using “arguments” as a parameter name. When you do that I believe it overrides the standard behavior of the arguments array.
$r('renderUserId', function (field,value) {<br> <br>});
and
$r('renderUserId', function () {<br> field = arguments[0];<br> value = arguments[1];<br>});
are exactly the same logically
Matt,
Try removing arguments from the function declaration:
$r('renderUserName',function() { ... });
Alternatively, specify the two arguments and then you don’t need the “var field = argumentse0], value =…” bit:
$r('renderUserName',function(field,value) { ... });
Sweet! Thanks, Ben and J.