I'm wanting to copy an array from another page on my site. What is the best way to do so using iframe or ajax ?
The source code of the page i want to iframe or ajax has this array written
var ls_nfl_games = []
ls_nfl_games["BUF"] = [];
ls_nfl_games["LAR"] = [];
ls_nfl_games["BUF"].time = 1662682800;
ls_nfl_games["BUF"].pretty_time = "Thu 8:20pm ET";
ls_nfl_games["BUF"].opp = "LAR";
ls_nfl_games["BUF"].where = 'away';
ls_nfl_games["LAR"].time = 1662682800;
ls_nfl_games["LAR"].pretty_time = "Thu 8:20pm ET";
ls_nfl_games["LAR"].opp = "BUF";
ls_nfl_games["LAR"].where = 'home';
i tried to place the page in iframe , but the array is not working in parent. Is there a way to do this ? I didn't find any answers when searching for this question