Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2491 closed bug (invalid)

ajax XML FILE rss

Reported by: adilcconsult Owned by:
Priority: major Milestone: 1.2.4
Component: ajax Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:

Description

I tryed to load data by using jquery ajax possibilities from an url: 'http://xml.weather.yahoo.com/forecastrss?p=MOXX0004&u=c' the exacte code is like that $.get('http://xml.weather.yahoo.com/forecastrss?p=MOXX0004&u=c', function (data) {

$(data).find('foo').each(function (index){

.......

});

}); but i tryed also all kind of possibilities . but the real problem is this url i have an error message (uncaught exception: Permission refusée d'appeler la méthode XMLHttpRequest.open )

plz answer

Change History (2)

comment:1 Changed 12 years ago by adilcconsult

$.get('http://xml.weather.yahoo.com/forecastrss?p=MOXX0004&u=c', function (data) {

$(data).find('title').each(function (index){

.......

});

});

comment:2 Changed 12 years ago by davidserduke

Component: coreajax
Resolution: invalid
Status: newclosed

The problem is likely with the security model of a browser which requires a "same-origin".

http://en.wikipedia.org/wiki/Same_origin_policy

So unless you are requesting the xml file from a page located on yahoo.com you'll have to proxy it through your own server.

Either way this doesn't appear to be a jquery bug. If I'm missing something please feel free to reopen the ticket with more information.

Note: See TracTickets for help on using tickets.