Skip to main content

Close
Get the best research tool on the web today,and free!
Connect with people with common interests!

saved by9 people, first byjfm2038 on 2006-04-24, last byRavichandra C on 2008-08-03

  • The browser security model dictates that XMLHttpRequest, frames, etc. must have the same domain in order to communicate. That's not a terrible idea, for security reasons, but it sure does make distributed (service oriented, mash-up, whatever it's called this week) web development suck.
  • The client decides on the arbitrary prepended text by using a query argument named jsonp with the text to prepend. Simple! With an empty jsonp argument, the result document is simply JSON wrapped in parentheses.


    Let's take the del.icio.us JSON API as an example. This API has a "script tag" variant that looks like this: