Posts

Showing posts from December, 2015

SEARCH VIDEOS AND SIMPLIFIED JSONP DEMO

About JSON and JSONP you can read in the internet Here I would like to present this issue as I understand. JSONP (JSON with Padding) is an unofficial method, a intelligent trick to overcome barriers when we want to transmit information between different domains. (author: Bob Ippolito http://bob.ippoli.to/archives/2005/12/05/remote-json-jsonp/) To use JSONP, first we need convert the information into a javascript object. Then this object is taken as an argument for a function with a certain name, eg "jsonCallback(...)" Because the user has written jsonpCallback function when the information comes to the client PC this function is trigged and the JSON (long string, a photo of the object) revives, becomes real object and start working under the user's program. There are two methods 1- Typical method: The user can give a name for function and then sent this name to remote server. To use typical method apart from Javascript, we have to know a server-side