Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery
ggalan
xml parse
in
Using jQuery
•
12 years ago
im using this tutorial
http://www.switchonthecode.com/comment/reply/371
but it only seems to work in FF, chrome and IE gives errors
does anyone know why this is?
$(document).ready(function()
{
$.ajax({
type: "GET",
url: "jquery_xml.xml",
dataType: "xml",
success: parseXml,
error: err
});
});
function err(xhr, reason, ex)
{
$('#output').append(reason);
}
function parseXml(xml)
{
$(xml).find("Tutorial").each(function()
{
$("#output").append($(this).attr("author") + "<br />");
});
}
1
Replies(4)
ggalan
Re: xml parse
12 years ago
it seems to work once on a server, but not local for chrome and IE
wonder why??
Leave a comment on ggalan's reply
kosmarnik
Re: xml parse
12 years ago
It's not visible from your code, but I'd guess you're trying to do cross-domain xml GET.
It should not work.
Does it work loading a local xml file?
If not report your request/response. Maybe it's a MIME mismatch.
Leave a comment on kosmarnik's reply
ggalan
Re: xml parse
12 years ago
correct, it doesnt work when the file is local on chrome and IE
once uploaded to a server all 3 browsers work fine
what is a
MIME mismatch?
Kevin B
Re: Re: xml parse
12 years ago
chrome will not allow ajax on local machine, so that just leaves IE.
IE likes to fail on extra commas, not closed nodes, etc.
-- Kevin
------------------------------------------------
http://www.tentonaxe.com
- New Design!
Leave a comment on ggalan's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to ggalan's question
Top
Reply
{"z4295985":[14737000001181019],"z3123152":[14737000001178999],"z3975301":[14737000001178351,14737000001179171,14737000001179760]}
Statistics
4
Replies
2154
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
[jQuery] Parse XML howto?
JQuery XML Parse Bug?
XML parse image list
Trying to parse xml
Parse XML for iframe