I never disputed your first one not working, only clarifying your other thread and this one as to why it most likely was not working for you when you passed in the ID.
Like I said earlier, your error is most likely due to you pulling a cached version of dnn.js.
Version 3.3.2 of DNN had this code in the dnn.js file
function $()
{
var ary = new Array();
for (var i=0; i<arguments.length; i++)
{
var arg = arguments[i];
var ctl;
if (typeof arg == 'string')
ctl = dnn.dom.getById(arg);
else
ctl = arg;
if (ctl != null && typeof(Element) != 'undefined') //if prototype loaded, we must extend the object
Element.extend(ctl);
if (arguments.length == 1)
return ctl;
ary[ary.length] = ctl;
}
return ary;
}
Version 3.3.3 contains this fix
function $()
{
var ary = new Array();
for (var i=0; i<arguments.length; i++)
{
var arg = arguments[i];
var ctl;
if (typeof arg == 'string')
ctl = dnn.dom.getById(arg);
else
ctl = arg;
if (ctl != null && typeof(Element) != 'undefined' && typeof(Element.extend) != 'undefined') //if prototype loaded, we must extend the object
Element.extend(ctl);
if (arguments.length == 1)
return ctl;
ary[ary.length] = ctl;
}
return ary;
}
I am guessing that you either have an old version of the file on your server or FireFox is pulling a cached version.