[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-08 Thread Scott Sauyet
On Jan 7, 7:48 pm, Frank Peterson wrote: > Well the xml file is not on my server, but I'll try to shoot them an > email and let them know, they should set the headers. Are you sure that you're not running into cross-site scripting issues? Security restrictions will prohibit you from AJAXing cont

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-08 Thread Frank Peterson
I just checked the headers and they seem to be outputting correctly. Date: Fri, 08 Jan 2010 13:47:32 GMT Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g X-Powered-By: PHP/5.2.4-2ubuntu5.6 Content-Length: 454 K

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-07 Thread Frank Peterson
Well the xml file is not on my server, but I'll try to shoot them an email and let them know, they should set the headers. On Jan 7, 4:44 pm, Jules wrote: > As suggested by Steven, set the ContentType to "text/xml".  I don't > know how to do it in php, but here is the snipped from data source in

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-07 Thread Jules
As suggested by Steven, set the ContentType to "text/xml". I don't know how to do it in php, but here is the snipped from data source in c# . StringBuilder sb = new StringBuilder(); sb.Append(""); sb.Append(""); sb.Append("74.125.45.100"); sb.Append("OK");

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-07 Thread Frank Peterson
That works in IE8, but in FF 3.5.3 I get undefined in the alertbox. I've disabled adblock and flashblock, so its not those interfering. I dont get anything in the error console either. The code I had posted earlier doesn't work in FF 3.53 either. I'm accessing it by running it on my desktop with t

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-06 Thread Jules
Ahah, too much stale eggnog. var option = { error: function(request, status, error) { alert(error); }, success: function(data, status) { var xml = $(data);

Re: [jQuery] Re: Go through XML nodes only 1 level deep

2010-01-06 Thread Steven Yang
just making sure you are not able to parse the xml at all right? i believe for IE you have to make sure you server returns the correct content type like text/xml to client inorder for you to parse hope this help On Thu, Jan 7, 2010 at 9:30 AM, Jules wrote: > For some reason, it works on firefo

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-06 Thread Jules
For some reason, it works on firefox (3.5.6) and doesn't work in ie 6.0 and 8.0 On Jan 7, 6:39 am, Frank Peterson wrote: > I'm grabbing an XML file with jQuery like this: > > $(document).ready(function(){ >     $.ajax({ >         type: "GET", >         url: "http://ipinfodb.com/ip_query.php?ip=74