Alrighty guys, I'm trying to get myself started with using an API called tinysong that'll use XML HTTP objects to take in specially formatted URLs to return a json object with song metadata.

See code . (BTW I have replaced myApiKey with my own API key.)

I believe I've done everything correctly, but can't see where I'm going wrong when I get a cross-origin request error in the error log through Firefox's debugging... thing.

However -- if I try doing entering the url manually through my browser, i.e.,[2] <myApiKey>

I do get JSON-formatted output, namely this:

{"Url":"http:\/\/\/knej","SongID":13963,"SongName":"Ask About Me","ArtistID":77,"ArtistName":"Girl Talk","AlbumID":117512,"AlbumName":"Night Ripper"}

Wat do?