I have a file chaychu.js which having some arrays that are used for scrolling the value of them from bottom to top . But then i want to make the scrolling text more easy to change by using database . That means i added PHP script to get values from the database and pass the value the arrays in that chaychu.js .
The problem is that i don't know how to solve this . Thought there was a way : getting value form database and then write in another .js file ( tmp.js - for example ) - with the format of setting value for the function in the file chaychu.js . But i can't get the value from the the file tmp.js to use in the function in the file chaychu.js . So i came here to ask that can we call values from another .js file from another file ? and how ?
Or is there any other way to solve my problem above ?