Click here to Skip to main content
13,052,163 members (40,616 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How i can read XML file from url ( using JavaScript
Posted 2-Feb-13 20:44pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

I will provide you a hint on it. Read about XMLHttpRequest (traditional Ajax). using it, you can send a request to URL and get back the response as an XML. Try out.
engmebeed 3-Feb-13 4:09am
Thanks for replay:
I have try to use it like:
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {, url, true);
} else if (typeof XDomainRequest != "undefined") {
xhr = new XDomainRequest();, url);
} else {
xhr = null;
return xhr;
And there are some error could you help??
Sandeep Mewara 3-Feb-13 4:17am
Have a look at these for XMLHttpRequest:
XMLHttpRequest Object[^]
XMLHTTPRequest with Sample[^]
Using the XML HTTP Request object[^]

Try out!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100