Implementing jsonp for cross domain request
Your would be very happy when it comes to crossdomain with ajax call. I have one of the solution to make a crossdomain successful with jsonp.
The main problem for making a cross domain request is many browser has a security restriction as we cannot make any request other than the current domain.
The solution is jsonp, but you might be thinking how does that work to0?
I have created a test application in php to give a response to a get request.
You can refer to the following screenshot. You can also check the domain from which i am calling. The domains have been changed via host file.
I will be implementing jsonp without getJson method. Hope this will save lot of your time ..