I'm currently working on a project where I need to extract data stored in an object and showcase it on my website. In my .html file, I have the following setup:
<script type="text/javascript">
var res = {"address":"","city":"","state":"","zip":""};
</script>
Additionally, I have a .js file that contains my layout, design, and the entire store. The code I've written so far attempts to retrieve data from the .html file and display it on my .js file:
var newStore= new Ext.data.ArrayStore({
fields: ['address', 'city', 'state', 'zip'],
loadData: (res),
idIndex: 0
});
I'm unsure about the correct approach to accomplish this task. Could someone provide guidance on the best way to achieve this?