Giter Club home page Giter Club logo

assignment4's Introduction

assignment4

AJAX

In the template files provided, you are going to create a predictive search feature.

I have created a simple API that you will use ajax to request a json object with search terms. Upon typing a character that one of the words on the list begins with, a function will fire that will begin to display matches as the user continues to type. This functionality will be similar to when you perform a google search, as you type, google shows you different results as you type that contain links to take you to the result you choose.

YOU MAY NOT USE JQUERY AUTOCOMPLETE WIDGET OR ANY OTHER AUTOCOMPLETE METHOD OTHER THAN YOUR OWN

All of the code for this must be written by you. You are free to use vanilla js, or jQuery to get the job done. The search results should be styled to match the existing form aesthetic.

There are a few easter eggs hidden in the api that you can find by messing with the request url, there are some headers you can find in the response object, all kinds of fun things.

The url for the API is http://www.mattbowytz.com/simple_api.json You can put a number of query parameters at the end of the url to get different data.

?data=all, ?data=interests, ?data=programming, ?data=comics

You can use any of the data to do anything you want for this as well.

Bonus Points

Make the autocomplete results into clickable links that will take you to google search results in a new tab.

Let me know if you have any questions!

assignment4's People

Contributors

matty-digital avatar nicoledaniels avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.