Is it possible to create an array of objects? I'm wondering this because I'm developing an iPad website that has a bunch of fields that will need to be scrollable on the iPad.
Of course iPad/Safari had to go and make things difficult and not use the overflow-x/y option to allow scrollbars. So, what I'm hoping to do is create an array of iScroll objects because there's a large amount of things that need to be created and I would rather not do:
var myScroll = new iScroll();
var myScroll = new iScroll();
Etc.
What I would hope to do is have some sort of loop like:
var arrayOfObjects=new Array();
for(var i=0; i < numFields; i++)
{
var temp = new iScroll();
arrayOfObjects.push(temp);
}
So, is something like this doable?