Hey guys,
I have been trying to navigate through the code examples thus far in Third Party JS, and have reached chapter 3. I am noticing that the "Listing" code examples do not seem to build on each other, but rather stand alone. Ideally, I would like to use this book to create a demo widget, than customize it to my specific needs. Is that the intention?
For example, I created the widget.js main script body covered in Listing 2.2. This included defining the loadSupportingFiles, getWidgetParams, getRatingData, and drawWidget function stubs.
However, after this, I was expecting to see how the next examples helped us build out these function stubs. There hasn't been explicit references to the original main script body since Chapter 2. I have been using my best judgment thus far, but am confused with the proper way to implement the examples in Chapter 3, "Rendering HTML and CSS.."
My question is: Is the book meant to be followed this way? Or is it more of a generic overview of different techniques that you then must put into practice? To me, it seems more like the latter especially as some of the references to images (i.e. http://camerastork.com/img/1337-small.jpg) to not point to real URLs where content is hosted.
Any clarification would be greatly appreciated.
Thanks,
Jeff
|