Hi Everybody!
I need to implement following functionality: load some structured data form my own server into the app, save it to local DB (websql) and then show it on frontend. It will allow users to work with app even in offline mode.
I thought about 2 solutions:
create rest service to load data from remote server, but i do not need to map it directly to interface. I need to map it to local database. How can I get access to results of service invoke function in js?
Use just normal JS function and make call using XMLHttpRequest. But this solution raises security error because JS attempts to connect to another domain.
Advice me please what is best practice to do this?
Thanks!