Yavar
Yavar

Reputation: 11933

Understanding callback part in a URL

I am very new to UI/HTTP stuff.

Say I have a URL:

https://demos.netrics.com/ncc7/find_json?table_name=names1M&sensitivity=0.843&query=abc&callback=jsonp1330501624190&_=1330501901072

I just want to decode it in plain english for the part callback=jsonp1330501624190&_=1330501901072.

What does it mean? Actually my query is sent to the server (there is the query parameter in the URL) and I get back JSON from the server. This is fine. But what does it mean to have json stuff (as I have mentioned above) in URL from the client end?

Here is my original question which led me to the above question: Interesting Computing stuff in designing User Interfaces

Upvotes: 0

Views: 87

Answers (1)

Diode
Diode

Reputation: 25165

On client side there should be a function like this, which will process the response object.

function jsonp1330501624190(result){

  // process result

}

These links might be useful :

http://blog.bigbinary.com/2009/07/16/what-is-jsonp.html

http://remysharp.com/2007/10/08/what-is-jsonp/

Upvotes: 1

Related Questions