Giter VIP home page Giter VIP logo

legislative-committee-maps's Introduction

legislative-committee-maps's People

Contributors

mroswell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

thomaswilburn

legislative-committee-maps's Issues

CORS

Sometimes the committees list popup won't load because of this CORS error:

XMLHttpRequest cannot load http://openstates.org/api/v1/committees/?state=al&fields=members%2Ccommittee%2Csubcommittee%2Cchamber&apikey=9e3e71730ae34e1ebbf4dd0e1c346c07. The 'Access-Control-Allow-Origin' header has a value 'http://legislativecommittees.org' that is not equal to the supplied origin. Origin 'http://localhost:8000' is therefore not allowed access.

To replicate:

  1. Go to legislativecommittees.org in one tab and localhost:8000 in another (or refresh each of the tabs)
  2. In each, open the same state using the dropdown in the top-right
  3. The second one you try will not load, and you will get the error above

Members pop up out of order

#2 (diff)

...member data resolves. That's why you see them pop in out of order. If you wanted to wait for all of them, you could use $.when to run your code once all the API promises have been resolved:
...

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.