I want to create the JSON file with code and keep adding arrays of columns as different users save data. How would you go about it? The data I'm collecting and passing to the array will come from form elements.
In the end you mentioned that using the loadintoTable function we could create a refresh button on clicking which the table gets refreshed, how do I do that ?
How would I initially get my data in that format? Lets say my data is an array of objects [ {ID:X , name: X , Age: X} , {ID:X , name: X , Age: X} ] . Can someone tell me how to format this into that?
Well, its code for the live web on a static update you make yourself so I think is helpful as I learned some meaning tips. I had no ideas really what await would await. Because I was expecting it to duplicate code for Express or PHP etc I had probably expected a more dynamic code between non web live files. Really it is just one file called jsondata like one js file object. Very useful however for thinking.
Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML') Its showing this error even I tried put the script tag below table tag but not working.
Thank you so much sir . I tried same with different method . Making string with td elements and actual data from json and added it as inner HTML of table head and body . Love dcode theme #009875
This is the best Fetch API video tutorial. Learning this is a great first step into any beginners first big boy CRUD project
U explain everything so easily
Amazing content 👍 very well explained.
Quick question: how would you loop or paginate an API with massive data, multiple pages?
Cheers.
I want to create the JSON file with code and keep adding arrays of columns as different users save data. How would you go about it? The data I'm collecting and passing to the array will come from form elements.
This was awesome! Liked and subscribed.
Excellent job!
oh thanks kyu man u save my life
I am appreciate your time for making this video. Thank you so much for all the information you provided.
This was great! Thank you so much for creating this! For the header what if you only needed specific headers and not all of them?
In the end you mentioned that using the loadintoTable function we could create a refresh button on clicking which the table gets refreshed, how do I do that ?
If I want to fectch the localStorage data to a table, would this be the same approach?
Very good!!!
Thank you sir.
Watching your excellent (little) tutorials since a few days. Sub on
Awesome, thank you!
and what about if you have 2 api info and u have to put them in one table, how to do that ?
thanks, man!!!!
God bless!
You're welcome!!
hello dom, what is your font family of the vs code? it is very cool
Hey, none other than Roboto Mono 🙂
@@dcode-software thanks :)
How would I initially get my data in that format? Lets say my data is an array of objects [ {ID:X , name: X , Age: X} , {ID:X , name: X , Age: X} ] . Can someone tell me how to format this into that?
let convertedToJsonArray = JSON.parse(JSON.stringify(initialArray);
@@MyBinaryLife It doesnt give me any errors however on the page it's only showing [object object] [object object]. Any ideas?
@@zemihd8450 you need to check the route or path, it's probably incomplete
Well, its code for the live web on a static update you make yourself so I think is helpful as I learned some meaning tips. I had no ideas really what await would await. Because I was expecting it to duplicate code for Express or PHP etc I had probably expected a more dynamic code between non web live files. Really it is just one file called jsondata like one js file object.
Very useful however for thinking.
brilliant
hello how can we add button inside this table
Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML')
Its showing this error even I tried put the script tag below table tag but not working.
Awsome 😊
I think this needs live server after all, despite being neighbouring files.
FYI udemy course link is broken and not sure how to search by instructor on their website
You always give valuable content
Awesome 🙂 the only solution here is to use the same HTTPS or HTTP for both web servers.
it gives an error and can not ge data from data.json file why? is my fault?
hey nice toutotial, can u share the codes?
source code ?
Good
I am getting headers is not iterable why is that ?
you forgot to put await before fetch(url)
@@leonidstojkovski4856 doesn't work
Thank you so much sir .
I tried same with different method . Making string with td elements and actual data from json and added it as inner HTML of table head and body .
Love dcode theme #009875
Nice 🙂 I've memorized that number by heart
would be nice to include files
big minus that you dont add github repo with the code