- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In www/js/init-apps.js I have established communication with server and retrieved data needed to fill select. On page #mainpage I have a select I would like the options to be the retrieved data from server. How do I fill the options list on #mainpage select control from init-apps.js or do I need to put a button on #mainpage and fill from there? So far I have not come up with a way to do it from init-app.js this the way I would prefer to fill the select. That way when app shows select will be filled and all user has to do is make selection, enter username and password and login in.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should have one default options list in your html file and then you can change the options in app.js file after you get the values from server. Use ids in your options elements and replace the text of those elements in app.js with new values.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page