5
votes
Accepted
Pset8: typeahead not working in js file※i am using python for solving this problem set
One common cause of this problem is search returning a nested list instead of a list. A quick way to detect this is doing a call to search?q=021. If the result shows nested lists:
[
[
{
"...
- 27.5k
2
votes
Pset8 typeahead not working
Nothing wrong with your scripts.js from what I can see.
Try to clear your browser's cache or something.
If I paste your entire file in place of my scripts.js, your code works.
So maybe your ...
- 2,595
1
vote
Accepted
Pset8 need help with suggestions
I'm far from being an expert (or even good) in JavaScript, but I think you could go to the search() function inside scripts.js and call _.sortBy on data here:
// call typeahead's callback with ...
- 2,595
1
vote
Accepted
pset8 postal code not greying out like the staff's
You can enclose your postal_code with <span></span> tags and either alter the style inline with the style attribute or give that <span> element an id or class and customize this id/...
- 2,595
1
vote
Accepted
The syntax "<%- place_name %>" in pset8
This is the template syntax used by the Underscore.js JavaScript library.
There's a link to the full documentation in the Problem Specification.
You may also wish to pay special attention to this ...
- 3,046
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
typeahead × 8pset8 × 5
python × 1
final-project × 1
pset × 1
javascript × 1
css × 1
syntax × 1
google × 1
dropdown × 1
maps × 1
handlebars × 1