> Thanks for the reply. I think I will go for either of those JS solutions,
> found on Stackoverflow:
> function isEmpty(obj) {
> for(var prop in obj) {
> if(obj.hasOwnProperty(prop))
> return false;
> }
> return true;}
A solution using hasOwnProp, while it may seem most complete, does
make its own assumption about emptiness. This may make it compatible
with jQuery but it's not the only definition: deliberately inherited
properties may suffice to make an object non-empty depending on your
ecosystem. YMMV....
-- Sandy