1) no the initial size of the array object, you need to set its X to something greater than 5. you are probably setting values when no row exists
2) you need to use on ajax 'on completed', then there is data to add to the array. edit: this didn't work? let's see the events with on completed.