I had this working then broke it! Here is the code:
// My function
function slide_set_time(slide_set_name,run_hour){
this.slide_set_name = slide_set_name;
this.run_hour = run_hour;
}
// My Array
window.slide_schedule_array = new Array();
var ni = 0;
window.slide_schedule_array[ni++] = new slide_set_time('slide_set1','02');
All I need to do is grab the data in the nested array in the first position. In this case that equals slide_set1. Though, I cant' seem to get the syntax right. Right now I'm just trying to alert the result to the screen. Any help would be awesome!
// My function
function slide_set_time(slide_set_name,run_hour){
this.slide_set_name = slide_set_name;
this.run_hour = run_hour;
}
// My Array
window.slide_schedule_array = new Array();
var ni = 0;
window.slide_schedule_array[ni++] = new slide_set_time('slide_set1','02');
All I need to do is grab the data in the nested array in the first position. In this case that equals slide_set1. Though, I cant' seem to get the syntax right. Right now I'm just trying to alert the result to the screen. Any help would be awesome!