Coder Social home page Coder Social logo

whitschrader / linkcheckerwithajax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wdi-sf-jan-2014/linkcheckerwithajax

0.0 1.0 0.0 174 KB

A lab to practice making ajax requests. The app should check if a link returns a 200.

Ruby 17.59% JavaScript 78.19% CSS 4.23%

linkcheckerwithajax's Introduction

LinkCheckerWithAJAX Lab

In this lab, you will modify a simple link checking app to use ajax. The basic functionality is a site that allows the user to enter a url. The site will make a get request on the url and save the http response code.

Objectives

  • Make all of the tests pass (both rails and jasmine)
  • Get practice using jQuery.post

Instructions

  • The user should never have to refresh the page
    • Make the root route the index action.
    • The user should be able to submit a new site from the index. This should be handled using an ajax post.
    • The input and button for submitting a new site should be added dynamically in javascript
    • The result of create should be appended to the end of the table
  • Make sure you seed your database. That should give you some sample data to work with.

Hints

  • To add newly created sites to the page, first find the table element using $('#siteTable'), then use .append("<h1>Some HTML</h1>")
  • Pay attention to the alert dialog. Do what it says.

Bonus

Add a delete button that issues an http delete on a specific row. This action also requires an auth token.

Extra Bonus (Difficult)

Add a shuffle button that will remove all the table rows from the table, make an http GET to refresh the list of sites, then repopulate the table in a random order. This is difficult. Check out this post for help: Shuffle Array.

linkcheckerwithajax's People

Contributors

tigarcia avatar whitschrader avatar

Watchers

 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.