|
Project Information
Featured
Downloads
Links
|
OverviewAll web browsers enforce security restrictions that prevent webpages from making cross-domain XMLHttpRequests. xdRequest is a JavaScript library that allows you to easily make cross-domain requests with dynamic script tags. They dynamic scripts are generated with YQL requests/responses made to a custom open table definition. xdRequest does all of the work of performing the dynamic script tag insertions and parsing the YQL JASONP responses to make them easier to work with. This makes it quick and easy to develop cross-domain scripts to obtain and parse data. Features
Quick SampleHere's an example of how easy xdRequest is to use: var myXDR = new xdRequest;
myXDR.setURL("http://www.example.com").addCookie("foo", "bar").get(
function(response) {
// Replace the contents of id_of_element_in_page
document.getElementById("id_of_element_in_page").innerHTML = response.html;
}
);
Try it Now!Download the latest version and visit the xdRequest Instructions page to learn more about using it. You can also check out an xdRequest demo to see it working live. |