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
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.
-
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
-
-
-
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