From the course: Code Clinic: JavaScript
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Accessing the MySQL database - JavaScript Tutorial
From the course: Code Clinic: JavaScript
Accessing the MySQL database
- [Instructor] So the bad news is that Java Script isn't designed to hold large amounts of data because what happens is that it gets processed by your browser every time you make a connection to a website. So if you tried, for example, to access 20 megabytes of data what would happen most likely is that your browser will crash and that's not a good experience. So what we need to do is find a way of accessing a portion of the data, just a portion of the data that we need, in this case the barometric pressure as well as the dates. We're gonna return it in this JSON format that we can feed into our Java Script so that we can process and even graph the data. So the reason why all this data is in this particular format is because it's a little bit friendly to the charting application that I'm using which is C3 and that's the only reason why it's formatted like this. So you can see that it is a Java Script object or actually a JSON object and we're returning the barometric pressure as an…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Intro: The weather at Pond Oreille1m 51s
-
(Locked)
Solution overview2m 20s
-
(Locked)
Accessing the MySQL database7m 13s
-
Reading data with fetch()4m 17s
-
(Locked)
Passing information to our database2m 56s
-
(Locked)
Charting basic data with C3.js5m 42s
-
(Locked)
Plotting multiple graphs9m 28s
-
(Locked)
Customizing the chart display4m 32s
-
(Locked)
Controlling the interface9m 30s
-
(Locked)
-
-
-
-
-