Is there a way to get (from somewhere) the number of elements in a javascript object?? (i.e. constant-time complexity).
I cant find a property or method that retrieve that information. So far ...
I have a collection of objects in JavaScript like this:
Object collection = new Object();
collection[123] = new Item(); //another object
collection[425] = new Item();
collection[2134] = new Item();
//etc. etc.
//TODO: sort items
I have learned from somewhere that if I have a unordered collection (eg. a list of things to buy) I should use an object literal in Javascript. And if I have ...
How do I make an array element [object INPUT] instead of [object Collection]? Hello, I am working with Lasso 8, and using Javascript for my error trapping, and MySQL as my database. I have several 'Date Fields' that are made up of 3 drop downs: Month, Day, Year. When the user selects each of these things and hits the submit button, ...