data in js file

I would like to store the data for a combobox (dropdown) in a js file and use a function to load the dropdown

for instance in the js would be:
function alist(){
list = ["Home", "Favorites", "Font size", "Search"];
return list;
The main page would have;
var mylist = alist()
var sState1 = new AW.UI.Combo;

I can't seem to get the list loaded using a function. I've tried variations of this. Can it be done?
ira berkowitz
February 22,
Yes, it should work like this. Maybe there are some syntax errors (like missing var declaration or missing semicolon)?
Alex (ActiveWidgets)
February 22,

This topic is archived.

See also:

Back to support forum