Skip to main content

Bug Tracker

Side navigation

#2491 closed bug (invalid)

Opened March 12, 2008 01:55AM UTC

Closed March 13, 2008 12:34AM UTC

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

Attachments (0)
Change History (2)

Changed March 12, 2008 01:55AM UTC by adilcconsult comment:1

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

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

.......

});

});

Changed March 13, 2008 12:34AM UTC by davidserduke comment:2

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.