1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Ajax requests

Discussion in 'Census: General Discussion' started by Catharz, Jun 30, 2013.

  1. Catharz

    Catharz Guest

    I'm still a bit of a noob at javascript and I'm trying to put together some graphs using d3js and the data api. It all works fine when I'm grabbing data from my site, but I have cross-site request issues when trying to pull the data from the api using Ajax.

    Does anybody have any working Ajax examples?
     
  2. Feldon

    Feldon Guest

  3. Catharz

    Catharz Guest

    Sweet, thanks for that Feldon!

    I just got it working. Currently, all it does is graph the top 50 characters sorted by health.


    The jsfiddle is here if anybody wants to take a look.
     
  4. Catharz

    Catharz Guest

    I re-based my jsfiddle, and put some popups in for it.
    Really loving what can be done with d3.
     
  5. Dedith

    Dedith Guest

    lol, damn, I was building out my params in the url, looks so much neater that way. I had done similar in my php code pulling census data a few weeks back.
     

Share This Page