Rank: Administration
Groups: Administrators, Registered Joined: 6/1/2011(UTC) Posts: 88 Location: Urbana Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
We have added CORS support to API versions 2.0-2.2. As an example, the following jQuery code now works: Code:$.ajax({
type: 'GET',
url: 'https://developer.cumtd.com/api/2.2/json/getdeparturesbystop?stop_id=it&key=YOUR_KEY',
datatype: 'json',
crossDomain : true
}).then(
function(data) {
// handle success
},
function(jqXHR, textStatus, errorThrown) {
// handle error
}
);
Edited by user Monday, August 25, 2014 12:24:28 PM(UTC)
| Reason: Not specified
|
1 user thanked Ryan for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.