7:49 am - Saturday May 25, 2013

cross domain ajax request

cross domain ajax call

Ajax (acronym for Asyn­chro­nous JavaScript and XML) is a group of inter­re­lated web devel­op­ment tech­niques used on the client-side to cre­ate asyn­chro­nous web appli­ca­tions. With Ajax, web appli­ca­tions can send data to, and retrieve data from, a server asyn­chro­nously (in the back­ground) with­out inter­fer­ing with the dis­play and behav­ior of the exist­ing page. Data can be retrieved using the XML­HttpRe­quest object. Despite the name, the use of XML is not required (JSON is often used instead), and the requests do not need to be asyn­chro­nous.
Ajax is not a sin­gle tech­nol­ogy, but a group of tech­nolo­gies. HTML and CSS can be used in com­bi­na­tion to mark up and style infor­ma­tion. The DOM is accessed with JavaScript to dynam­i­cally dis­play, and to allow the user to inter­act with the infor­ma­tion pre­sented. JavaScript and the XML­HttpRe­quest object pro­vide a method for exchang­ing data asyn­chro­nously between browser and server to avoid full page reloads.

There is a lot of solid sup­port for cross-domain Ajax in mod­ern web browsers, yet most devel­op­ers are still unaware of this pow­er­ful capa­bil­ity. Usage requires just a lit­tle bit of extra JavaScript work and a lit­tle extra server-side work to ensure that the cor­rect head­ers are being sent. IE8?s imple­men­ta­tion lags a bit behind the oth­ers in terms of allow­ing advanced requests and cre­den­tialed requests, if your domain is http://example.com you can only use ajax calls to get results from example.com not from any other web­sites for secu­rity reasons.But, using YQL we can sim­ply get results from other websites.

Here is the video tuto­r­ial that explains you about cross domain ajax request.

You May Also Like:

Filed in: Ajax, Javascript

2 Responses to “cross domain ajax request”

  1. bharani Kumar
    August 25, 2012 at 7:23 pm #

    Hi Murali this arti­cle is good . but if u explain it in moore clear way by going step by step ans can u give more clear pic­ture about YQL.

Leave a Reply