I solved this problem by modifying the results of Google's Ajax method. GDownloadUrl(XMLPath, function(data, responseCode) { if(responseCode == 200) { var xml = GXml.parse(data); $('node', xml.documentElement); } else if(responseCode == -1) { alert("Data request timed out. Please try later."); } else { alert("Request resulted in error. Check XML file is retrievable."); } });
On Nov 16, 5:04 pm, 1Marc <[EMAIL PROTECTED]> wrote: > Here is an update. I tried using Google's API for Ajax and it is > returning the data but I am unable to parse it with jQuery. > > CODE >> > > GDownloadUrl(object.path + '?' + object.data, function(data, > responseCode) { > if (responseCode == '200') { > $('node', data); > } > > }); > > OUTPUT >> firebug outputs this: > "ret[i].getElementsByTagName is not a function" jquery.js (line 23) > > On Nov 16, 4:07 pm,1Marc<[EMAIL PROTECTED]> wrote: > > > When using jQuery Ajax, I am receiving a parseerror in IE (Firefox & > > Safari work). Has anyone run into this before - and know how to fix > > it? Or something I can at least try. > > > CODE >> > > > object = { > > path : 'data.xml', > > data : 'lat=40.935&lng=-125.000' > > > } > > > $.ajax({ > > url: object.path, > > data: object.data, > > type: 'GET', > > dataType: 'xml', > > timeout: 1000, > > error: function(XMLHttpRequest, textStatus, errorThrown) { > > alert('Error loading data: ' + textStatus); > > }, > > success: function(xml){ > > ... > > } > > > }); > > > OUTPUT >> 'Error loading data: parseerror'