Can't get XML response from jQuery/AJAX code...
I have had to adapt some singular code I had from a previous project into one that is to execute at real time, but for some reason I'm at a loss as to what I'm doing wrong...
Put simply I want it to push the received XML from the URL I've provided to a hidden form variable set in the function _L(). But for some reason that value is not coming through... Anyone have any ideas what I may be doing wrong?
cfmParser is actually on a different server, it strips out the specific code surrounding the particular URL expressed in feedURL. So anyone outside of my network may get some cross-domain issues if they try to execute the code... But if one is to execute it, they should expect the code to be XML... But for some reason I can't seem to extract it once the code is run. I can tell you that it is sending a 200 request status code, so it is getting through on my end... here is the code.
I've tried a number of combinations, but my AJAX knowledge is a little lacking here...
var feedURL = 'http://webservice.weatherzone.com.au/rss/wx.php?u=12994-1285[amp]lt=aploc[amp]lc=' + weatherCode + '[amp]obs=1[amp]fc=1[amp]warn=1';
var cfmParser = 'http://126.96.36.199/rssparser.cfm';
parser = new DOMParser();
xmlDoc = parser.parseFromString(theHtml, "text/xml");
Any clues what I might be doing wrong?
Thanks and Regards,
You can't make AJAX requests to other servers because of the SameOrginPolicy. [link]
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread