Skip to content

Instantly share code, notes, and snippets.

@TBD
Created November 20, 2009 15:10
Show Gist options
  • Save TBD/239553 to your computer and use it in GitHub Desktop.
Save TBD/239553 to your computer and use it in GitHub Desktop.
input:
http://polimedia.us/trip/json.php?u=tbdr&c=myfunc
output:
myfunc([{"user" : "tbdr","position" : "786","score" : "0.17309","RT from" : "<font color=#0a00f5>PorscheTM</font>, <font color=#2f00d0>bleau</font>, <font color=#0900f6>whocoulddizbe</font>, <font color=#0700f8>Adeline</font>"}])
test app:
http://code.plugins.ro/trip.htm
it should display the correct user info, otherwise the step that fails is displayed
explanation:
1. server receives input URL with two variables u and c (user and callback)
2. server returns callback function text + () + [] + {data}
example:
myfunc(
[
{
"key":"value"
}
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment