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: [ [ { "...
user avatar
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 ...
user avatar
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 ...
user avatar
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/...
user avatar
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 ...
user avatar
  • 3,035

Only top scored, non community-wiki answers of a minimum length are eligible