0

I am currently working on pset8 with cs50 mash up's search function. I coded it such that the function successfully return the arrays of places, however I can't seem to link it to my search box and the $_GET["geo"] value doesn't work. Can someone help me please? Thank you! (here is my code) my code

1 Answer 1

1

search function in scripts.js is expecting an array of json objects. Your print ("i"); statements are interfering with that. Instead of returning [{......}], you are returning 0[{....}]. Subtle difference to humans, world of difference to the computer.

5
  • Thanks for advice! However I don't seem to have problems getting my array of places, it's only when it comes to the drop down and suggestion menu for the text box nothing seems to happen D: Commented Nov 24, 2015 at 5:29
  • I see. I have edited the answer to address that. Commented Nov 24, 2015 at 13:11
  • Thank you so much!!!! Commented Nov 25, 2015 at 3:30
  • The dropdown menu worked but it's all TODOs even if I have changed the variable to place_name and admin_name1 Commented Nov 25, 2015 at 6:35
  • It has to be related to something you did (or didn't!) do in the What To Do -> configure section of the pset instructions. Please post a new question if you continue to have trouble with this. Commented Nov 25, 2015 at 23:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .