I'm just moving some of these over from our issues list as public errata so we can gather everything here in one place until we can make some fixes.
Issue: Code with
$(this).find() doesn't work.
He should say: "You're watching JQuery: The Return Flight"
BTW Thanks for the amazing courses! You're doing great!
Slide 61 describes the "contentType" parameter to $.ajax() call as "Ask the server to respond with JSON". This is a mistake, as according to the official jQuery docs, this parameter informs the server about the format of the data in HTTP request.
So if you set the contentType as "json", expecting to receive a JSON object back, but the data you submit in the ajax call is not JSON, then the server wont see any data at all.
Just found this out after an hour of debugging.
- equivalently available from slides at challenge 3.3, page/slide 16
- a bit more info. in another thread
- slide entitled $.ajax with POST and JSON
- change Ask the server to respond with JSON >> Specifies JSON is sent to the server
- dataType description is fine
One slide 117: "Calling a Plugin from Outside":
The "show" function is reused in the following two lines of code:
settings.vacation.on('click.priceify', 'button', show);
In the first line, the reference to "$(this)" inside the "show" function will refer to the button clicked, which you then hide with the code "$(this).hide()" (referencing the "show" function code on slide 116)
In the second line, won't the reference to "$(this)" inside the "show" function refer to each ".vacation" element? Does the "$(this).hide" line inside the "show" function need to be modified before it can apply to both the "on" lines above?
Issue: It should say "prices" but is accidentally mentioned as "prizes".
Slide: page 95
Issue: It should say "Priceify" but is accidentally mentioned as "Pricify".
Slide: page 102